wp_enqueue_editor

动作钩子
参数
  • (array) $to_load An array containing boolean values whether TinyMCE and Quicktags are being loaded.
    Required:
    Default:
定义位置
相关勾子
wp_enqueue_code_editorwp_default_editorwp_enqueue_scriptsenqueue_block_editor_assetsthe_editor
相关方法
wp_enqueue_editorwp_enqueue_code_editorwp_enqueue_mediawp_enqueue_stylewp_default_editorwp_enqueue_script
引入
3.9.0
弃用
-

wp_enqueue_editor:这是一个WordPress内置函数,用于在前端页面中加载和使用编辑器(TinyMCE)。通常在自定义插件或主题中使用,以便在前端显示具有富文本功能的输入框。

当编辑器的脚本和样式被排队时触发。

do_action(

常见问题

FAQs
查看更多 >