widget_text_content

widget_text_content

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('widget_text_content') is found 1 times:

  • /wp-includes/widgets/class-wp-widget-text.php line 298
    			 * @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 );
    			}