wp_editor_expand

过滤钩子
apply_filters( 'wp_editor_expand', true, $post_type )
参数
  • (bool) $expand Whether to enable the 'expand' functionality. Default true.
    Required:
  • (string) $post_type Post type.
    Required:
定义位置
相关勾子
wp_editor_settingswp_editor_set_qualitywp_code_editor_settingswp_error_addedwp_redirect
相关方法
wp_editorwp_mkdir_pwp_randwp_import_cleanupwp_embed_register_handlerwp_print_editor_js
引入
4.1.0
弃用
-

wp_editor_expand是 WordPress 中的过滤器钩子,它允许开发人员控制是否应扩展或收缩文章编辑屏幕中的可视化编辑器。默认情况下,可视化编辑器是收缩的,过滤器钩子允许开发人员通过返回true以展开编辑器或false保持收缩来更改此行为。

过滤是否在文章编辑器中启用”扩展” 功能。

if ( apply_filters( 'wp_editor_expand', true, $post_type ) ) {

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-19 09:27:50

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: