the_editor_content

the_editor_content

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('the_editor_content') is found 2 times:

  • /wp-includes/class-wp-editor.php line 289
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    * @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 474
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
        $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' );
    }