Hiding the Preview Button in WordPress

WordPress is good for its simplicity for clients, who do not want to understand the admin panel when adding their articles, but even here you can remove elements that are rarely used.

Today I will tell you how to remove the preview button of the current post from the page for adding a new article., which, as far as I know, no one really uses.

Simple code example:

If you do not want to remove the current page view button, you can change the code a little and instead of the line:

write another:

Using the same method, you can remove almost any element in the admin area., but be careful, you just hide the elements and do not prohibit their use and malicious hackers can take advantage of this ).


Купить хостинг WordPress
WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal