htmledit_pre
云策文档标注
概述
htmledit_pre 是一个 WordPress 过滤器钩子,用于在文本被格式化为 HTML 编辑器内容之前进行过滤。该钩子已在 4.3.0 版本中弃用。
关键要点
- 过滤器名称:htmledit_pre
- 参数:$output(HTML 格式的文本)
- 用途:过滤文本,以便在 HTML 编辑器中使用
- 状态:自 WordPress 4.3.0 起已弃用
- 相关函数:wp_htmledit_pre() 和 _WP_Editors::editor()
注意事项
由于此钩子已弃用,建议开发者避免在新代码中使用,并考虑替代方案。
原文内容
Filters the text before it is formatted for the HTML editor.
Parameters
$outputstring-
The HTML-formatted text.
Source
return apply_filters( 'htmledit_pre', $output );