I'm using this code to remove tools from wp-admin menu. But how do I block the access to http://ift.tt/1zjrjIC since I still can visit it by typing in the URL?
add_action( 'admin_menu', 'my_remove_menu_pages' );
function my_remove_menu_pages() {
remove_menu_page('tools.php');
}
Aucun commentaire:
Enregistrer un commentaire