widget_text_content

widget_text_content

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.5.1

apply_filters('widget_text_content') is found 1 times:

  • /wp-includes/widgets/class-wp-widget-text.php line 295
    			 * @param string         $text     The widget content.
    			 * @param array          $instance Array of settings for the current widget.
    			 * @param WP_Widget_Text $this     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 );
    			}