angelfire4xx (@angelfire4xx)

Forum Replies Created

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

  • angelfire4xx
    Participant

    @angelfire4xx

    I’d like to hide the whole “Account” section from a user’s BBpress Profile Edit interface (Username, Email, password, language fields).
    Can anyone advise the best way to do this?

    In reply to: Add Custom User Roles

    angelfire4xx
    Participant

    @angelfire4xx

    I’m finding that Naturopath is showing as forum role on the user’s wordpress profile, but only for a short while. WordPress changes it back to Participant after it appears to have saved.
    Participant is showing in the bbpress profile and under the username for their topics and comments in bbpress.

    In reply to: Add Custom User Roles

    angelfire4xx
    Participant

    @angelfire4xx

    Great tip about code snippets plugin, I didn’t know about that one, thanks!

    Sadly the user is still showing up in bbpress as Participant. Although I was able to save the user with a Naturopath role in WP.

    In reply to: Add Custom User Roles

    angelfire4xx
    Participant

    @angelfire4xx

    Thanks Robin, I did search and replace tutor > Naturopath and pasted the code at the end of functions.php. I would love to say it worked but…

    Naturopath appeared as a forum role selection in the dropdown for each WP User. However when Naturopath was selected for the user and then saved, WP only displayed Role = “No role for this user”, and Capabilities = bbp_Naturopath.

    When I tried a test post as that user, BBPress described me as a participant.
    So, not there yet, but your help is appreciated 🙂
    Linda

    (PS: I’m looking for the Naturopath role to have the same capabilities as Participant.)

    In reply to: Add Custom User Roles

    angelfire4xx
    Participant

    @angelfire4xx

    Not sure if this topic is out of date…?
    I have WP 5.8.1
    Trying to create a custom role based on the help here, but whatever I do it doesn’t work. Feeling a bit lost as I’m not a developer. I’ve read all the posts on this topic that I can find!
    Added this to the end of functions.php
    /* bbPress Custom Roles */
    function add_custom_role( $bbp_roles ) {
    $bbp_roles[‘my_custom_role1’] = array(
    ‘name’ => ‘Naturopath’,
    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() )
    );

    I saw this line sometimes was added so I tried appending that too, but it didn’t help.
    add_filter( ‘bbp_get_dynamic_roles’, ‘add_custom_role’, 1 );
    }

    Any advice? Thanks!

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