Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change user role from outside bbPress


  • AJ
    Participant

    @permaculturetreegeek

    I would like to set a conditional check for a user meta value or status and update their user role accordingly. Is this possible? (in a plugin or functions.php)

    for example:

    if (user_status = pending) {set forum user role to => observer}
    OR
    if (user_meta field ‘status’ = pending) {set forum user role to => observer}
    AND
    if (user_status = approved) {set forum user role to => participant}
    OR
    if (user_meta field ‘status’ = approved) {set forum user role to => participant}

    Thanks!

    WP: 3.8
    bbPress: Version 2.5.2

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

You must be logged in to reply to this topic.