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. */
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
Post a Comment