Установка редактора по умолчанию в WordPress

15.11.2017 | Автор: Maxim Glovatsky Оставить комментарий »

Представленный ниже фрагмент кода меняет редактор по умолчанию в консоли WordPress. Вы можете использовать Visual Editor или HTML Editor, просто добавьте один из них в файл functions.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";') );


  1. Many thanks for your post. My spouse and i get often noticed that many people are desperate to lose weight simply because need to look slender in addition to looking attractive. On the other hand, they do not generally realize that there are more positive aspects to reducing your weight in addition. Medical doctors say which overweight individuals experience many different health conditions that could be directly related to their excess weight. Fortunately that individuals that are obese along with suffering from different diseases can reduce the seriousness of their illnesses by means of reducing your weight. It is possible to go to a continuous however noted development in well being while a good negligible quantity of losing weight is reached.

Добавить комментарий