Created
October 1, 2019 15:02
-
-
Save fahidjavid/45b4399e2257e122eacae0d0af3fe458 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function inspiry_add_user_additional_fields() { | |
$form_fields = array( | |
array( | |
'name' => esc_html__( 'Postal Code', 'framework' ), | |
'id' => 'postal_code', | |
'type' => 'select', | |
'options' => array( | |
'37300' => '37300 A', | |
'37400' => '37400 B', | |
'37500' => '37500 C' | |
), | |
'title' => esc_html__( '* Provide your area postal code.' ), | |
'show' => array( 'register_form', 'profile_backend', 'profile_frontend' ) | |
), | |
array( | |
'name' => esc_html__( 'License Number', 'framework' ), | |
'id' => 'license_number', | |
'required' => true, | |
'title' => esc_html__( '* Provide your license number.' ), | |
'show' => array( 'register_form', 'profile_backend', 'profile_frontend' ) | |
), | |
array( | |
'name' => esc_html__( 'Car Name', 'framework' ), | |
'id' => 'car_name', | |
'title' => esc_html__( '* Provide your car name.' ), | |
'show' => array( 'register_form', 'profile_backend', 'profile_frontend' ) | |
), | |
); | |
return $form_fields; | |
} | |
add_filter( 'inspiry_user_additional_fields', 'inspiry_add_user_additional_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment