How To Remove Custom Post Type menu for non administrator users – WordPress tips and tricks 2016

Video is ready, Click Here to View ×

A few newbie WordPress Lover ask me How can I hide my custom post types from all roles except Administrator? This video shows you how to Remove Custom Post Type menu for non-administrator users.

This video seems 7 minutes but it takes only 2 minutes to do it. Actually, I have shown you the full process includes creating a user in other role.

This WordPress tips and tricks will help you to customize your WordPress Dashboard menu.

Here’s the Function code:

function jemeewptips_remove_menu_items() {
if( !current_user_can( ‘administrator’ ) ):
remove_menu_page( ‘edit.php?post_type=ts_pricing_table’ );
add_action( ‘admin_menu’, ‘jemeewptips_remove_menu_items’ );

If you have any problem for removing post type menu for non-administrator. You can contact me.

Follow me on your favorite social media:

Google Plus:

Leave a Reply

Your email address will not be published. Required fields are marked *