// Prepare the content for the Visual or Text editor, only when TinyMCE is used (back-compat). if ( self::$this_tinymce ) { add_filter( , , 10, 2 ); }
/** * Filters the default editor content. * * @since 2.1.0 * * @param string $content Default editor content. * @param string $default_editor The default editor for the current user. * Either or . */ $content = apply_filters( , $content, $default_editor );
// Remove the filter as the next editor on the same page may not need it. if ( self::$this_tinymce ) { remove_filter( , ); }
// Back-compat for the `htmledit_pre` and `richedit_pre` filters if ( === $default_editor && has_filter( ) ) { // TODO: needs _deprecated_filter(), use _deprecated_function() as substitute for now _deprecated_function(