Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of asoldier
    asoldier
    Participant

    @asoldier

    I might have done that wrong, but I did this, and it did not help. I even tried beta 2 and it didn’t help. http://www.gameragereviews.net <

    Avatar of asoldier
    asoldier
    Participant

    @asoldier

    I also found `user_id );

    if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
    foreach ( $user->roles as $role )
    echo “display_name}’ />”;
    }?>`

    but it doesn’t want to work in the profile

    Avatar of asoldier
    asoldier
    Participant

    @asoldier

    Now I’m trying to take
    `function pc_get_userrole ($user_id) {

    $user = new WP_User($user_id);

    $userclean = $user->roles[0];

    return $userclean;

    }`

    and
    `echo pc_get_userrole(bp_current_user_id()); `

    and I want to add some custom CSS based on the role.

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