MLATextWidget

Extends \WP_Widget

Class MLA (Media Library Assistant) Text Widget defines a shortcode-enabled version of the WordPress Text widget

package

Media Library Assistant

since 1.60

Methods

Calls the parent constructor to set some defaults.

__construct() : void
since 1.60

Echo the "edit widget" form on the Appearance/Widgets admin screen

form( $instance) : void
since 1.60

Arguments

$instance

Register the widget with WordPress

mla_text_widget_widgets_init_action() : void
static

Defined as public because it's an action.

since 1.60

Sanitize widget definition as it is saved to the database

update( $new_instance,  $old_instance) : array
since 1.60

Arguments

$new_instance

$old_instance

Response

array

Updated definition values to be saved in the database

Display the widget content - called from the WordPress "front end"

widget( $args,  $instance) : void
since 1.60

Arguments

$args

$instance