Представленный ниже фрагмент кода меняет редактор по умолчанию в консоли WordPress. Вы можете использовать Visual Editor или HTML Editor, просто добавьте один из них в файл functions.php.
1 2 3 4 5 6 7 |
<?php # This sets the Visual Editor as default add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') ); # This sets the HTML Editor as default add_filter( 'wp_default_editor', create_function('', 'return "html";') ); ?> |