How to add additional fields in the user register form?
To add an extra field in the user registration form, use the below filter hook.
cdfs_user_register_additional_field
You can add your custom function in the child theme’s functions.php and hook to the above filter. Here is a sample code.
add_filter( 'cdfs_user_register_additional_field', 'child_cdfs_user_register_additional_field' ); function child_cdfs_user_register_additional_field( $fields ){ $fields = array( 'user_type' => array( 'name' => 'Phone', 'type' => 'text' ), 'phone' => array( 'name' => 'User Type', 'type' => 'select', 'options' => array( 'key' => 'Label 1', 'key2' => 'Label 2' ) ) ); return $fields; }