Support » Plugin: Co-Authors Plus » Only administrators can create guest authors?

  • Resolved Kyle Scheuerlein

    (@kylesureline)



    Is there any way that my editor role can have the capability to create guest authors?

Viewing 2 replies - 1 through 2 (of 2 total)
  • davemac

    (@davemac)

    You can add coauthors capabilities to the editor role:

    
    // allow editors to manage co-authors plus plugin, create guest authors
    function dmc_modify_editor_role() {
    	$role = get_role( 'editor' );
    	$role->add_cap( 'coauthors_guest_author_manage_cap' );
    }
    add_action( 'admin_init', 'dmc_modify_editor_role' );
    
    
    • This reply was modified 5 months ago by  davemac.
    Kyle Scheuerlein

    (@kylesureline)

    Perfect! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.