WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about widget_text

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/widgets/class-wp-widget-custom-html.php apply_filters 148 /**
* Outputs the content for the current Custom HTML widget instance.
*
* @since 4.8.1
*
* @global WP_Post $post Global post object.
*
* @param array $args Display arguments including 'before_title', 'after_title',
* 'before_widget', and 'after_widget'.
* @param array $instance Settings for the current Custom HTML widget instance.
*/
wp-includes/widgets/class-wp-widget-text.php apply_filters 281 /**
* Filters the content of the Text widget.
*
* @since 2.3.0
* @since 4.4.0 Added the `$widget` parameter.
* @since 4.8.1 The `$widget` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object.
*
* @param string $text The widget content.
* @param array $instance Array of settings for the current widget.
* @param WP_Widget_Text|WP_Widget_Custom_HTML $widget Current text or HTML widget instance.
*/

Hook Parameters

Parameter Type Name Description
string $text The widget content.
array $instance Array of settings for the current widget.
WP_Widget_Text|WP_Widget_Custom_HTML $widget Current text or HTML widget instance.