format_for_editor

format_for_editor

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('format_for_editor') is found 1 times:

  • /wp-includes/formatting.php line 4390
    4386
    4387
    4388
    4389
    4390
    4391
    4392
    4393
    4394
    4395
    4396
         * @param string $text           The formatted text.
         * @param string $default_editor The default editor for the current user.
         *                               It is usually either 'html' or 'tinymce'.
         */
        return apply_filters( 'format_for_editor', $text, $default_editor );
    }
     
    /**
     * Performs a deep string replace operation to ensure the values in $search are no longer present.
     *
     * Repeats the replacement operation until it no longer replaces anything to remove "nested" values