Home › Forums › Pro Support › Remove WP Show Posts Menu Item for Editors › Reply To: Remove WP Show Posts Menu Item for Editors
January 20, 2017 at 11:19 am
#1469
Keymaster
Hi Daniel,
Give this function a try:
add_action( 'admin_menu', 'wpse28782_remove_menu_items' );
function wpse28782_remove_menu_items() {
if( !current_user_can( 'administrator' ) ):
remove_menu_page( 'edit.php?post_type=wp_show_posts' );
endif;
}