When we develop a blog to client , client may do some unwanted changes in the back end(settings page), so we need to hide those settings menu in WordPress, in order to disable settings menu there is a simple snippet to add in functions.php which disables settings menu.
/* Remove Settings and Posts Menu */
add_action( 'admin_menu', 'remove_menu_pages' );
function remove_menu_pages() {
remove_menu_page('options-general.php');
remove_menu_page('edit.php');
}
No comments:
Post a Comment