wp_default_editor

过滤钩子
apply_filters( 'wp_default_editor', $r )
参数
  • (string) $r Which editor should be displayed by default. Either 'tinymce', 'html', or 'test'.
    Required:
定义位置
相关勾子
wp_enqueue_editorwp_default_stylesprint_default_editor_scriptsdefault_feedwp_default_scripts
相关方法
wp_default_editorwp_default_styleswp_enqueue_editorwp_default_packages_vendorwp_image_editorwp_editor
引入
2.5.0
弃用
-

wp_default_editor:此函数设置 WordPress 的默认编辑器。WordPress 平台通常使用它来确定使用哪个编辑器来编写和编辑文章和页面。

筛选出默认显示的编辑器。

return apply_filters( 'wp_default_editor', $r );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 16:32:56

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

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

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