• Resolved theatereleven

    (@theatereleven)


    I’m using a USP form to register a user, and have defined a custom role in my functions.php file for new users.

    I’ve set WordPress and USP to use this custom role, but when a new user is registered with the form, the role isn’t assigned. It just says ” – no role for this site – ” and I have to manually select one.

    However, if I create a new user manually, the role is assigned without issue. Has anyone run into this?

    Here’s the role I have in my functions.php:

    add_role('OGs_author', 'OG Profile', array (
     'publish_OGs' => true,
     'edit_OGs' => true,
     'edit_others_OGs' => true,
     'delete_OGs' => true,
     'delete_others_OGs' => true,
     'read_private_OGs' => true,
     'edit_OGs' => true,
     'delete_OGs' => true,
     'read_OGs' => true,
     // more standard capabilities here
    'read' => true,

    https://wordpress.org/plugins/user-submitted-posts/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No role for this site’ is closed to new replies.