format_for_editor хук-фильтр . WP 4.3.0
Filters the text after it is formatted for the editor.
Использование
add_filter( 'format_for_editor', 'filter_function_name_2669', 10, 2 ); function filter_function_name_2669( $text, $default_editor ){ // filter... return $text; }
- $text(строка)
- The formatted text.
- $default_editor(строка)
- The default editor for the current user. It is usually either 'html' or 'tinymce'.
Список изменений
С версии 4.3.0 | Введена. |
Где вызывается хук
format_for_editor
wp-includes/formatting.php 4237
return apply_filters( 'format_for_editor', $text, $default_editor );