Extremely Useful Tricks For WordPress Website

Hi folks, Today I am going to share extremely useful tips and tricks for WordPress websites which will work with your functions.php and wp-config.php files.

This tutorial is designed for WordPress developers as well WordPress website owners whoa care about his WordPress website. Below is some useful trick for your WordPress website.


How to empty your trash items automatically

Are you want to empty your trash items automatically, then open your wp-config.php file from your root directory of your website and copy paste below snippets at the end of the file. 7 number is the number of days between the emptying your trash items.

How to remove default editor submenu from admin panel

Are you want to disable your default built-in editor where you can edit your code using your website admin panels, then keep a close eye in this tutorial as I have added below code to remove default editor from your WordPress website. Copy paste below code in your functions.php file at the end of the file and save it.

How to restrict access admin area to administrators only

Open your functions.php file and add below code at the end of the file to restrict access to admin area to administrator user only. It is a good way to keep away your website users from your admin area.

How to hide ‘screen options’ tab

Add below code in your functions.php file of your current activated theme to completely remove the Screen Options tab from the admin area. Below filter will remove your Screen Options.

Over To You

Hope thi stutorial helps you. If you enjoy this tutorial, then like & share this tutorial with your friends on socail media, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Article Tags: , , , , ,