Allow contributors to add categories, but not delete

I used a plugin called “User Role Editor” to allow contributors to add categories, but it also lets them delete categories.

Any suggestions?

Related posts

Leave a Reply

1 comment

  1. Since the category widget on the post page only lets you create categories and not delete them, you could just hide access to the main category editor page for this user type, and allow them to still create categories within the post editor.

    You could do this with CSS or javascript, something like

    $('ul.wp-submenu a[href="edit-tags.php?taxonomy=category"]').hide();
    

    You could target this to a specific user group by passing the user capabilities to javascript using script localisation.