format_to_edit
云策文档标注
概述
format_to_edit 是一个 WordPress 过滤器,用于在文本被格式化以供编辑之前进行过滤。它允许开发者修改即将编辑的文本内容。
关键要点
- 这是一个过滤器 Hook,名称为 'format_to_edit'。
- 它作用于即将被编辑的文本,参数为 $content(字符串类型)。
- 在 WordPress 1.2.0 版本中引入,位于 wp-includes/formatting.php 文件中。
代码示例
$content = apply_filters( 'format_to_edit', $content );
原文内容
Filters the text to be formatted for editing.
Parameters
$contentstring-
The text, prior to formatting for editing.
Source
$content = apply_filters( 'format_to_edit', $content );
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |