\MLATextWidget

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

Summary

Methods
Properties
Constants
__construct()
widget()
form()
update()
mla_text_widget_widgets_init_action()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : void

Calls the parent constructor to set some defaults.

widget()

widget(  $args,   $instance) : void

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

Parameters

$args
$instance

form()

form(  $instance) : void

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

Parameters

$instance

update()

update(  $new_instance,   $old_instance) : array

Sanitize widget definition as it is saved to the database

Parameters

$new_instance
$old_instance

Returns

array —

Updated definition values to be saved in the database

mla_text_widget_widgets_init_action()

mla_text_widget_widgets_init_action() : void

Register the widget with WordPress

Defined as public because it's an action.