Home / admin / Disable theme, plugin editor and plugin, core updates
  • How to Disable theme, plugin editor and plugin, core updates

    disable-theme-plugin-editor-and-plugin-core-updates

    Adding the first line to your wordpress wp-config.php file will disable theme and plugin editor. Adding the second line to your wordpress wp-config.php file will disable plugin and core updates.

    ( click code to copy )

    wordpress snippet : PHP

    <>
    define(‘DISALLOW_FILE_EDIT’,true); // theme, plugin
    define(‘DISALLOW_FILE_MODS’,true); // core, plugin
    

    ( WordPress codex functions, hooks, in this snippet. )

    _e,