widget_text_content

widget_text_content

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('widget_text_content') is found 1 times:

  • /wp-includes/widgets/class-wp-widget-text.php line 298
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
         * @param string         $text     The widget content.
         * @param array          $instance Array of settings for the current widget.
         * @param WP_Widget_Text $widget   Current Text widget instance.
         */
        $text = apply_filters( 'widget_text_content', $text, $instance, $this );
    } else {
        // Now in legacy mode, add paragraphs and line breaks when checkbox is checked.
        if ( ! empty( $instance['filter'] ) ) {
            $text = wpautop( $text );
        }