• Resolved zgrayadev

    (@zgrayadev)


    Hi there! You have a great plugin, it does exactly what I want.But I need to make a small customization, I`m trying to remove this action ->
    add_action('woocommerce_register_form', array($this, 'mo_add_phone_field'), 1);
    from WooCommerceRegistrationForm.php Class, but failed.
    I used this code in my functions.php
    `if (class_exists(‘OTP\Handler\Forms\WooCommerceRegistrationForm’)) {
    remove_action(‘woocommerce_register_form’, [‘OTP\Handler\Forms\WooCommerceRegistrationForm’, ‘mo_add_phone_field’], 1);
    }`

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miniOrange

    (@cyberlord92)

    Hello @zgrayadev,

    Thanks for reaching out to us.

    We use the woocommerce_register_form hook to add the phone number field on the woocommerce registration form.
    Could you please elaborate on your use case so that I can help you better?

    Are you using any other plugin to add the phone field on the form?

    You can always reach out to us over [email protected] from the support form in the plugin. You will find it on the bottom right of the plugin.

    Feel free to reach out to us.

    Plugin Author miniOrange

    (@cyberlord92)

    Hello @zgrayadev,

    It seems that your requirement has been fulfilled.
    As we have not heard back from you in days. I will be going ahead and marking this thread as resolved.

    Feel free to reach out to us again if you need any help.

    You can always drop a query through the plugin itself and we would be happy to solve this issue for you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove action’ is closed to new replies.