format_for_editor

format_for_editor

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('format_for_editor') is found 1 times:

  • /wp-includes/formatting.php line 4390
    	 * @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