BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 5
    arnotzon on #27458

    This worked like a charm, thank you so much Ravi 🙂

    You might want to update this page for others: https://buddydev.com/buddypress-private-message-non-logged-users/

    Cheers

  • Participant
    Level: Initiated
    Posts: 5
    arnotzon on #27084

    Thanks for your reply Brajesh. I tried MediaPress, rtMedia and BP Member Reviews but the function works with neither of these plugins. I thought there was maybe another solution for hiding nav items.

  • Participant
    Level: Initiated
    Posts: 5
    arnotzon on #27021

    Hi Brajesh,

    I would also be interested in displaying media count on profile header. Can you please share this code?

    Thank you

  • Participant
    Level: Initiated
    Posts: 5
    arnotzon on #27011

    That worked perfectly, thank you so much!

  • Participant
    Level: Initiated
    Posts: 5
    arnotzon on #27002

    Thank you for you reply Brajesh!

    As I have other roles who can edit posts but would require profile completion, is it possible to get it by role? So that only role=donor can skip profile.

    I tried

    $user = get_userdata( $user_id );
    
    $user_roles = $user->roles;
    
    add_filter( 'bp_force_profile_completion_skip_check', function ( $skip ) {
    	if ( in_array( 'donor', $user_roles, true ) ){
    		$skip = true;
    	}
    
    	return $skip;
    } );

    but without success. Maybe you can help me?

    Thank you 🙂