the_editor_content

the_editor_content

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('the_editor_content') is found 2 times:

  • /wp-includes/class-wp-editor.php line 287
    		 * @param string $content        Default editor content.
    		 * @param string $default_editor The default editor for the current user.
    		 *                               Either 'html' or 'tinymce'.
    		 */
    		$content = apply_filters( 'the_editor_content', $content, $default_editor );
    
    		// Remove the filter as the next editor on the same page may not need it.
    		if ( self::$this_tinymce ) {
    			remove_filter( 'the_editor_content', 'format_for_editor' );
    		}
    
    
  • /wp-includes/widgets/class-wp-widget-text.php line 477
    				$default_editor = 'html';
    			}
    
    			/** This filter is documented in wp-includes/class-wp-editor.php */
    			$text = apply_filters( 'the_editor_content', $instance['text'], $default_editor );
    
    			// Reset filter addition.
    			if ( user_can_richedit() ) {
    				remove_filter( 'the_editor_content', 'format_for_editor' );
    			}