Replies
Viewing 3 posts - 1 through 3 (of 3 total)
Hi!
Thank you very much, I created the query, then the complete code:
function budydev_custom_validate_signup() { global $wpdb; $field_id = 13; $field = isset( $_POST[ 'field_' . $field_id ] ) ? trim( $_POST[ 'field_' . $field_id ] ) : ''; $qry = "SELECT value FROM wp_bp_xprofile_data WHERE value = " . $field; $result = $wpdb->get_results( $qry ); if(!empty($result)) { buddypress()->signup->errors[ 'field_' . $field_id ] = 'error message'; } }
Viewing 3 posts - 1 through 3 (of 3 total)