A WordPress-centric search engine for devs and theme authors



format_for_editor ›

Since4.3.0
Deprecatedn/a
apply_filters( 'format_for_editor', $text, $default_editor )
Parameters: (2)
  • (string) $text The formatted text.
    Required: Yes
  • (string) $default_editor The default editor for the current user. It is usually either 'html' or 'tinymce'.
    Required: Yes
Defined at:
Codex:

Filters the text after it is formatted for the editor.





Source

return apply_filters( 'format_for_editor', $text, $default_editor );