• Resolved juusui

    (@juusui)


    Is it possible to give non-admins permission to add/edit guest authors without giving them permission to add/edit WordPress users? We have content producers assigned as “editor”. Since they create, edit and publish posts, it would be ideal if they could also add guest authors without having to bug an admin. At the same time, we don’t want to give theme the ability to add, edit or delete WordPress users.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m looking for a similar answer to this also. I can see in the FAQs it says ‘To create new guest author profiles, a WordPress user will need the ‘list_users’ capability. This is typically granted to the Administrator role, but can be altered with the ‘coauthors_guest_author_manage_cap’ filter.’ However there is no documentation to explain how to use this filter. Does anyone know?

    Hello @juusui & @spartieee 👋

    To allow editors to create guest co-authors, you can use the following code snippet:

    add_filter( 'coauthors_guest_author_manage_cap', 'allow_editors_to_create_guest_coauthors' );
    function allow_editors_to_create_guest_coauthors() {
      return 'edit_others_pages';
    }

    edit_others_pages is a user permission that only editors, admins and super admins will have. You can find all permissions on https://wordpress.org/support/article/roles-and-capabilities/, in case you want other user roles enable to create guest co-authors.

    Perfect, thanks @nielslange !!

    You’re very welcome, @spartieee. 🙌

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Let non-admins create guest authors’ is closed to new replies.