Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何选择在 HTML 和可视化编辑器之间显示的默认编辑器?
目前,默认情况下始终选择可视化编辑器,我希望在加载页面时选择 HTML 编辑器。
这灵魂做到了。在您的主题中添加这一行functions.php。如果您想切换回来,请替换"html"为。"tinymce"
functions.php
"html"
"tinymce"
add_filter( 'wp_default_editor', create_function('', 'return "html";') );