Disable Theme Editor of Wordpress for security

Wordpress has the theme editor by which we can change several funtionality of Wordpress theme. It is the sensitive area in wordpress as sometimes a wrong code in function.php could stop the website from running. Then would be left with one option of ftp to remove that code from function.php .
We can disable theme editor using just a single line of code , which can also result in more secure website.

We need to paste this code in wp-config.php:

define( 'DISALLOW_FILE_EDIT', true );

Paste the code before this line:  /* That's all, stop editing! Happy blogging. */

Comments

Popular posts from this blog

GTA 4 | Grand Theft Auto IV Free Download | Pc Repack | Compressed

How To Remove Footer Credit From Blogger Template Without Redirecting

Filmora 9 Registration Code and License Key and Email 2021