Skip to:
Content
Pages
Categories
Search
Top
Bottom

Update forum role through php/programming


  • saudor
    Participant

    @saudor

    Hello, I am trying to cut down on spam and defaulting all new users to spectator/subscriber mode and use certain “tasks” such as using the site to automatically change their role to participant/member.

    I found this link but all it does is just make the forum role blank:

    how to change forum roles programmatically

    Can someone point me in the right direction? Thanks!

    BBpress Version 3.2. Updated to 4.1 but still same issue

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

  • saudor
    Participant

    @saudor

    figured it out!

    Issuing the following command directly in a single line worked:
    bbp_set_user_role( $user_id, ‘bbp_participant’ );


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed, and thanks for posting your solution

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