Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • oliviergodefroit
    Participant

    @oliviergodefroit

    No i didn’t , i’m so confuse !!!

    That works. This code is OK !


    oliviergodefroit
    Participant

    @oliviergodefroit

    Hello,

    unfortunately, this code doesn’t work, there is no error message but nothing appear on profiles.


    oliviergodefroit
    Participant

    @oliviergodefroit

    Yes excuse me. I would like to dislpay only one specific role on profile page, to certify this user is certified by the moderator.

    here is the code:

    
    add_action( 'bp_before_member_header_meta', 'verifed_profile_check' );
    function verifed_profile_check( ) {
    		
      if ( $role = 'certified_subscribers' ) 
    	echo '<span class="pmpro_label"> CERTIFIED PROFILE </span>';
      }
    

    This code display ‘CERTIFIED PROFILE’ to all profiles but should only display it for users role ‘certified_subscribers’


    oliviergodefroit
    Participant

    @oliviergodefroit

    My theme don’t show the user role, that is a script to show a badge ( if the user has a specific role).

    This badge will confirm the certified profile.

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar