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)。通常在自定義外掛或主題中使用,以便在前端顯示具有富文字功能的輸入框。

當編輯器的指令碼和樣式被排隊時觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action(
do_action(
do_action(

常見問題

FAQs
檢視更多 >