• Resolved indrabhusanroy

    (@indrabhusanroy)


    Hi, I need to remove the Phone Number Field from registration form or If this cannot be done, it can be rendered as not required.

    Can you please help.

    Regards

Viewing 1 replies (of 1 total)
  • Hello @indrabhusanroy,

    The fields are required so the notification will appear even if you remove the field. On the file location wp-content/plugins/dokan-lite/includes/Registration.php,
    line 76.

    You will find below the lines:

     $required_fields = apply_filters( 'dokan_seller_registration_required_fields', array(
                'fname'    => __( 'Please enter your first name.', 'dokan-lite' ),
                'lname'    => __( 'Please enter your last name.', 'dokan-lite' ),
                'phone'    => __( 'Please enter your phone number.', 'dokan-lite' ),
                'shopname' => __( 'Please provide a shop name.', 'dokan-lite' ),
            ) );

    Now after you hide the field you must make the filed non-required. You can do it via child-theme functions.php file because there is a filter already-.
    dokan_seller_registration_required_fields

    Now after you hide the field you must make the filed non-required. You can do it via child-theme functions.php file because there is a filter already-.
    "dokan_seller_registration_required_fields"
    Something like this :

     add_filter ();
     function{ 
         unset $reuquired_files ['phone]; 
    } 

    I hope this will help you make the changes you are looking for. Let me know if you have further queries I will be happy to help 🙂

    Good Day

    • This reply was modified 5 years, 11 months ago by roshni07.
Viewing 1 replies (of 1 total)

The topic ‘Remove Phone Number from registration’ is closed to new replies.