Answer the question
In order to leave comments, you need to log in
How to prevent the user from leaving the profile?
I have wordpress+buddypress.
After the user registers, I redirect them to the buddypress profile edit page. And I want that he could not save his profile until he fills in some fields.
Check the fields for fullness is clear as:
<?php
$bpProfileField = bp_get_profile_field_data( 'field=fieldName&user_id=' . $userid );
if ( empty ( $bpProfileField) ):
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question