File: wp-includes/widgets/class-wp-widget-text.php
-
Enqueues preview scripts.
-
Filters gallery shortcode attributes.
-
Injects max-width and removes height for videos too constrained to fit inside sidebars on frontend.
-
Adds hooks for enqueueing assets when registering all widget instances of this widget class.
-
Determines whether a given instance is legacy and should bypass using TinyMCE.
-
Loads the required scripts and styles for the widget control.
-
Renders form template scripts.
-
Filters the content of the Text widget to apply changes expected from the visual (TinyMCE) editor.
-
classWP_Widget_Text
Core class used to implement a Text widget.
-
Sets up a new Text widget instance.
-
methodWP_Widget_Text::widget()
Outputs the content for the current Text widget instance.
-
hookwidget_text
Filters the content of the Text widget.
-
methodWP_Widget_Text::update()
Handles updating settings for the current Text widget instance.
-
methodWP_Widget_Text::form()
Outputs the Text widget settings form.