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 平臺通常使用它來確定使用哪個編輯器來編寫和編輯文章和頁面。

篩選出預設顯示的編輯器。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'wp_default_editor', $r );
return apply_filters( 'wp_default_editor', $r );
return apply_filters( 'wp_default_editor', $r );

常見問題

FAQs
檢視更多 >