July 07th, 2024

How to Disable Theme and Plugin Editor from WordPress Dashboard?

Like (0) Comments (1)

1 Comments Add Your Comment

Akshat Gupta
3 years ago Selected
You have to use your WordPress wp-config.php file, which cannot be accessed from WordPress dashboard.

It is found in the WordPress root directory /public_html/.

After getting the wp-config.php file, just edit your wp-config.php file and /* That's all, stop editing! Happy blogging. */. Paste the following code just before the line.

define( 'DISALLOW_FILE_EDIT', true );

After pasting the code, save your wp-config.php file.

enough! Plugin and Theme Editor will be disabled on your WordPress site.
Like (0) Reply

Post a Comment

To leave a comment, please Login or Register