How to rebind an action called by plugin's class to a different tag?
-
Hey guys,
So one of my plugins defines the
add_action(‘woocommerce_before_add_to_cart_button’, array(&$this, ‘woocommerce_gravityform’), 10);
And I’d like to change the $tag element to a different one via theme functions.php file.
I found out that I can remove the action using:
global $woocommerce_gravityforms;
remove_action(‘woocommerce_before_add_to_cart_button’, array($woocommerce_gravityforms, ‘woocommerce_gravityform’ ), 10);But how to add it again?
Regards !
- The topic ‘How to rebind an action called by plugin's class to a different tag?’ is closed to new replies.