I'm trying to remove some item (like 'Commenti') from the WP dashboard for the user Author. I inserted into functions.php this code:
add_action( 'admin_menu', 'my_menu_links_removing', 999 );
function my_menu_links_removing() {
if ( ! current_user_can('administrator') ) {
remove_menu_page( 'comments.php' );
}
}
The item's name is 'Commenti' (Italian language) and I think that I'm using a wrong string like parameter passed to remove_menu_page function..
Can you help me, please?
Thanks in advance!