• We’re switching over from using posts to using a custom post type and want to eliminate the possibility of a staff member choosing to create a default post by habit. Using the Admin Menu Editor plugin, I was able to remove the ‘Posts’ tab from the left-hand side menu.

    On the top menu bar, however, there is still a ‘Post’ option under ‘New.’ Is there a way to remove just the ‘Post’ option?

Viewing 1 replies (of 1 total)
  • This should do it:

    function my_remove_admin_bar_links() {
        global $wp_admin_bar;
        $wp_admin_bar->remove_menu('new-post');
    }
    add_action( 'wp_before_admin_bar_render', 'my_remove_admin_bar_links' );

    Reference post here.

Viewing 1 replies (of 1 total)

The topic ‘Editing Admin Top Menu’ is closed to new replies.