Docs: Improve documentation for format_for_editor() and the 'the_editor_content' filter it is hooked to.
Props AramZS for initial patch. Fixes #34866. Built from https://develop.svn.wordpress.org/trunk@35904 git-svn-id: http://core.svn.wordpress.org/trunk@35868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3268,7 +3268,11 @@ function ent2ncr( $text ) {
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @param string $text The text to be formatted.
|
||||
* @see _WP_Editors::editor()
|
||||
*
|
||||
* @param string $text The text to be formatted.
|
||||
* @param string $default_editor The default editor for the current user.
|
||||
* It is usually either 'html' or 'tinymce'.
|
||||
* @return string The formatted text after filter is applied.
|
||||
*/
|
||||
function format_for_editor( $text, $default_editor = null ) {
|
||||
@@ -3281,7 +3285,9 @@ function format_for_editor( $text, $default_editor = null ) {
|
||||
*
|
||||
* @since 4.3.0
|
||||
*
|
||||
* @param string $text The formatted text.
|
||||
* @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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user