functions – How do I validate extra field (ABN) for whole sale customer on my WordPress wholesale’s page?
Question
I have a custom field (ABN) in my Woommerce registration form for wholesale customer
https://amocanailsbeautysupply.com.au/wholesale-login/
To prevent duplicate ABN, (no customers should register the same ABN number in the database) there is control but if I have a custom field I created how can I check it? many thanks
add_action( 'abn_registration_validate_text','ur_validate_text_field',10,4);
function ur_validate_text_field($single_form_field, $data, $filter_hook, $form_id) {
$field_label = isset( $data->label ) ? $data->label : '';
$value = isset( $data->value ) ? $data->value : '';
if( 'text-1665593182970' === $single_form_field->general_setting->field_name ) {
}
}
}
0
1 month
2023-02-17T00:10:06-05:00
2023-02-17T00:10:06-05:00 0 Answers
0 views
0
Leave an answer