Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to add custom $usermeta to registration


Anonymous User 96400
Inactive

@anonymized-96400

To check if a field has been filled in you can use this function.

function sv_check_tos()
{
global $bp;
if ( empty( $_POST['name_of_field_in_template'] ) )
$bp->signup->errors['name_of_field_in_template'] = __( 'Your error message', 'sv' );
}
add_action( 'bp_signup_validate', 'sv_check_tos' );

Useful for things like agreeing to TOS. Put the function in your functions.php or bp-custom.php file

Skip to toolbar