• Resolved bclaim

    (@bclaim)


    Hi,

    Is there a way to set the forum role when we are registering a user using the API and use bbPress? We have gotten it to register as a “Customer” in WooCommerce.

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Nicu Micle

    (@nicu_m)

    Hello @bclaim,

    When you create new users, just make sure you set the role you want bbPress.
    If you want to use multiple user roles, you can create “Auth Codes” with different user roles and attach them to your request. This way you will be able to create multiple user roles in WordPress and bbPress.

    Also, you can use the simple_jwt_login_register_hook hook, and write some custom code.

    
    simple_jwt_login_register_hook
    type: action
    parameters: Wp_User $user, string $plain_text_password
    description: This hook it is called after a new user has been created.
    

    Best regards,
    Nicu.

Viewing 1 replies (of 1 total)

The topic ‘User roles’ is closed to new replies.