activate_tinymce_for_media_description
云策文档标注
概述
此文档介绍了一个 WordPress 过滤器,用于控制附件详情屏幕中媒体描述字段是否启用 TinyMCE 编辑器。该过滤器允许开发者自定义 TinyMCE 的激活状态。
关键要点
- 过滤器名称:activate_tinymce_for_media_description
- 参数:$tinymce(布尔值),默认为 false,表示不激活 TinyMCE
- 用途:在附件详情屏幕中,过滤媒体描述字段的 TinyMCE 参数
- 引入版本:WordPress 6.6.0
- 相关函数:edit_form_image_editor(),位于 wp-admin/includes/media.php
原文内容
Filters the TinyMCE argument for the media description field on the attachment details screen.
Parameters
$tinymcebool-
Whether to activate TinyMCE in media description field. Default false.
Source
'tinymce' => apply_filters( 'activate_tinymce_for_media_description', false ),
Changelog
| Version | Description |
|---|---|
| 6.6.0 | Introduced. |