Remove action
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove action’ is closed to new replies.