• Resolved croco2511

    (@croco2511)


    I’ve been tasked with the removal of the plugin because the blog owner no longer has need for it.

    Upon deactivating the plugin the Categories page (wp-admin/edit-tags.php?taxonomy=category&post_type=attachment) still exists.

    How can it be removed?

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jeffrey-wp

    (@jeffrey-wp)

    Hi,

    That’s because the taxonomy category is a default taxonomy of WordPress. If you go to the page wp-admin/edit-tags.php?taxonomy=category&post_type=croco2511 you also will see the category page. You can change the post_type to whatever you want (even maken one up) and always will see the default WordPress category page.

    Thread Starter croco2511

    (@croco2511)

    Thanks for your reply.

    I should have been more specific. The page itself does not need to be removed but under the Media menu still shows the Categories link after deactivating the plugin.

    Before Plugin activation: No Category submenu link for Media.
    After Plugin activation: Category submenu link for Media.
    Now After Plugin deactivation: Category submenu still shows. But desired is for it to no longer appear in the Media menu.

    I hope that makes more sense.

    Thanks again for your help.

    Plugin Author jeffrey-wp

    (@jeffrey-wp)

    The categories link shouldn’t be visible after deactivation. Is there another plugin active that uses categories?
    If you want to remove all assigned categories for attachments / media you can execute these 3 queries in your database:

    DELETE FROM wp_terms WHERE term_id IN (SELECT tt.term_id FROM wp_term_taxonomy tt, wp_term_relationships tr, wp_posts p WHERE tt.term_taxonomy_id = tr.term_taxonomy_id AND tr.object_id = p.ID AND p.post_type = ‘attachment’);

    DELETE FROM wp_term_taxonomy WHERE term_taxonomy_id IN (SELECT term_taxonomy_id FROM wp_term_relationships tr, wp_posts p WHERE tr.object_id = p.ID AND p.post_type = ‘attachment’);

    DELETE FROM wp_term_relationships WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type = ‘attachment’);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uninstallation’ is closed to new replies.