1. 首页
  2. WordPress钩子手册

format_for_editor

apply_filters( ‘format_for_editor’, string $text, string $default_editor )

过滤器::在为编辑器格式化文本后对其进行过滤。
Filter Hook: Filters the text after it is formatted for the editor.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$text (string) 格式化文本。
$default_editor (string) 当前用户的默认编辑器。通常是“html”或“tinymce”。

源码(Source)


更新版本 源码位置 使用 被使用
4.3.0 wp-includes/formatting.php:4221 1 0

format_for_editor 为WP2原创文章,链接:https://www.wp2.cn/hook/format_for_editor-2/