Reputation: 23
I have taken over the management of a WordPress site, but notice that there is no "Editor" option in 'Appearance' or 'Plugins' - and I want it back!
wp-config
contains the following:
define(‘DISALLOW_FILE_EDIT’, false);
There is no plugin running that can disable this, how else can I bring back?
Upvotes: 2
Views: 1334
Reputation: 268
1st Run the your_domain/wp-admin/plugin-editor.php and confirm, is it work or not.
This will disable editor in theme and plugins, I use this code in wp-config.php
define( 'DISALLOW_FILE_EDIT', true );
read this you can take an idea. http://www.wpbeginner.com/wp-tutorials/how-to-disable-theme-and-plugin-editors-from-wordpress-admin-panel/
And also check plugins which your used , because there plugin options to disable editor.
also check this https://codex.wordpress.org/Function_Reference/remove_menu_page
eg.
<?php
function remove_menus(){
remove_menu_page( 'index.php' ); //Dashboard
remove_menu_page( 'jetpack' ); //Jetpack*
remove_menu_page( 'edit.php' ); //Posts
remove_menu_page( 'upload.php' ); //Media
remove_menu_page( 'edit.php?post_type=page' ); //Pages
remove_menu_page( 'edit-comments.php' ); //Comments
remove_menu_page( 'themes.php' ); //Appearance
remove_menu_page( 'plugins.php' ); //Plugins
remove_menu_page( 'users.php' ); //Users
remove_menu_page( 'tools.php' ); //Tools
remove_menu_page( 'options-general.php' ); //Settings
}
add_action( 'admin_menu', 'remove_menus' );
?>
Upvotes: 1