Core Function
View Source on Trac ↗ format_for_editor()
format_for_editor( mixed $text, mixed $default_editor = null ) Formats text for the editor.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $text string | The text to be formatted. Required |
| string | $default_editor The default editor for the current user. It is usually either 'html' or 'tinymce'. Required |
Return Value
(string)
The formatted text after filter is applied.
Function Information
Since Version
4.3.0
Source File
wp-includes/formatting.php
Advertisement