Remove Editor WordPress Menu Option Under The Appearance Menu - WordPress Security | WP Learning La
?Name Your Own Price? for the 11-Point WP Security Checklist Smart PDF: https://wplearninglab.com/go/wpsecurity017
Code from this video:
function remove_edit_menu() {
remove_action('admin_menu', '_add_themes_utility_last', 101);
}
add_action('_admin_menu', 'remove_edit_menu', 1);
In this tutorial I'm going to show you how to remove the Editor menu item from under the Appearance menu in your WordPress admin area.
Why is this important? For two reasons.
First, if a hacker successfully brute force attacks your website then they can edit theme files inside your admin area in order to insert malicious code. However, if they can't find the theme editor then they can't make those edits.
Please note that this isn't the best protection against brute force attacks and a hacker can work around this edit if they're savvy enough. Please see these videos for better brute force protection:
- Block specific IPs: https://youtu.be/CWOP7BKEw7s
- Limit WP-Admin access by IP: https://youtu.be/QAeGZMkdWHI
- Move the WordPress login page: https://youtu.be/_c4l6Vnr9aQ
Second, if you're creating a website for a client who likes to poke around in the admin area and play with things then there's a chance they will break the site through the editor. To prevent that from happening we hide the editor so they can't find it.
It is actually very easy to make this happen. All you have to do is copy and paste the piece of code from above into the main functions.php for the theme. Save the file and you're done.
Ideally, you would be using a child theme so that when the main theme is updated it won't overwrite the code.
Let's get this code into your functions.php file.
First, log into your hosting account, find the File Manager option and open the root of the website you want to work in. You can also do this via FTP if you prefer FTP.
Once the website root loads, open the "wp-content" folder. Then open the "themes" folder. Then find the functions.php file.
Into the top of the functions.php file paste the code from the top of this description. And you're done.
I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.
--------------
If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.
https://wplearninglab.com/
Connect with us:
WP Learning Lab Channel: http://www.youtube.com/subscription_center?add_user=wplearninglab
Facebook: https://www.facebook.com/wplearninglab
Twitter: https://twitter.com/WPLearningLab
Google Plus: http://google.com/+Wplearninglab
Pinterest: http://www.pinterest.com/wplearninglab/
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Remove Editor WordPress Menu Option Under The Appearance Menu - WordPress Security | WP Learning La», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.