WordPress.org

Ready to get started?Download WordPress

Forums

Media Categories
[resolved] Remove Media > Categories submenu item (1 post)

  1. pimschaaf
    Member
    Posted 1 year ago #

    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' );

    http://wordpress.org/extend/plugins/media-categories-2/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.