Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Remove WP Show Posts Menu Item for Editors Reply To: Remove WP Show Posts Menu Item for Editors

#1469
Tom
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;
}