Last active
September 17, 2024 04:38
-
-
Save ahsannayem/115b98a84a596feef8e454219ad4f3f4 to your computer and use it in GitHub Desktop.
Fluent Support
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
add_filter('fluent_support/custom_registration_form_fields', function($fields) { | |
$fields['phone_number'] = [ | |
'required' => false, | |
'type' => 'number', | |
'label' => __('Phone Number', 'fluent-support'), | |
'id' => 'fst_phone_number', | |
'placeholder' => __('phone_number', 'fluent-support'), | |
'wrapper_class' => 'fs_half_field', | |
]; | |
// Adding the new text field "Custom Contact" | |
$fields['custom_contact'] = [ | |
'required' => false, | |
'type' => 'text', | |
'label' => __('Custom Contact', 'fluent-support'), | |
'id' => 'fst_custom_contact', | |
'placeholder' => __('custom_contact', 'fluent-support'), | |
'wrapper_class' => 'fs_half_field', | |
]; | |
return $fields; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment