How would I increase the Author Role to be able to add a new category?

How do I increase Author Role permissions to be able to add Categories?

Other solutions welcome. We just need guest authors to be able to add categories while ensuring there is not already a existing appropriate category.

Related posts

Leave a Reply

2 comments

  1. Should work from inside your functions.php

    function add_manage_cat_to_author_role() 
    {
        if ( ! current_user_can( 'author' ) )
            return;
    
        // here you should check if the role already has_cap already and if so, abort/return;
    
        if ( current_user_can( 'author' ) ) 
        {
            $GLOBALS['wp_roles']->add_cap( 'author','manage_categories' );
        }
    }
    add_action( 'admin_init', 'add_manage_cat_to_author_role', 10, 0 );