Support » Plugin: Media Categories » Remove Media > Categories submenu item

  • Resolved pimschaaf


    For future reference. You can remove the Media > Categories submenu item with the following function in your functions.php:

    function remove_media_categories_menu_item () {
        global $submenu;
    add_action( 'admin_init', 'remove_media_categories_menu_item' );

    If I’m correct, this is WP < 3.1 style. The WP > 3.1 remove_submenu_page( $menu_slug, $submenu_slug ) as follows didn’t work for me:

    remove_submenu_page( 'uploads.php', 'edit-tags.php' );

    and neither did

    remove_submenu_page( 'uploads.php', 'edit-tags.php?taxonomy=category&post_type=attachment' );

  • The topic ‘Remove Media > Categories submenu item’ is closed to new replies.