BuddyDev

Search

[Resolved] how to auto assign pmpro membership level when profile marked as complete

Tagged: 

  • Participant
    Level: Initiated
    Posts: 2
    anisur rahman on #39880

    You can hook to “bpprocn_user_profile_completed” action and process anything when a user’s BuddyPress profile is marked as complete.

    i am not a coder, please help

  • Keymaster
    (BuddyDev Team)
    Posts: 24257
    Brajesh Singh on #39886

    Hi Anisur,

    Thank you for the question.

    We are not using PMPro for any of our project, so I will post a sample code which you can give to their support and request them for the code to update the membership.

    
    
    // update something about user on profile completion.
    add_action( 'bpprocn_user_profile_completed', function ( $user_id ) {
    	// add code to set/update the membership for the user.
    
    } );
    
    

    Please give them this sample code and request them to provide the code for updating the membership for user.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 2
    anisur rahman on #39891

    thanks for your help

  • Keymaster
    (BuddyDev Team)
    Posts: 24257
    Brajesh Singh on #39909

    You are welcome.

The topic ‘ [Resolved] how to auto assign pmpro membership level when profile marked as complete’ is closed to new replies.

This topic is: resolved