image_edit_thumbnails_separately
云策文档标注
概述
本文档介绍 WordPress 中的 image_edit_thumbnails_separately 过滤器,它控制是否在图像编辑器中显示单独编辑缩略图的设置选项。该过滤器允许开发者自定义图像编辑界面的行为。
关键要点
- image_edit_thumbnails_separately 是一个布尔型过滤器,用于决定是否在图像编辑器中显示编辑缩略图的设置。
- 默认值为 false,表示不显示该设置;开发者可以通过 apply_filters 修改此值以启用功能。
- 该过滤器在 WordPress 6.3.0 版本中引入,与 wp_save_image() 和 wp_image_editor() 函数相关。
原文内容
Shows the settings in the Image Editor that allow selecting to edit only the thumbnail of an image.
Parameters
$showbool-
Whether to show the settings in the Image Editor. Default false.
Source
$edit_thumbnails_separately = (bool) apply_filters( 'image_edit_thumbnails_separately', false );
Changelog
| Version | Description |
|---|---|
| 6.3.0 | Introduced. |