• Resolved pimschaaf

    (@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;
        unset($submenu['upload.php'][17]);
    }
    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' );

    https://www.ads-software.com/extend/plugins/media-categories-2/

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