do_actions in theme

This topic contains 1 reply and 2 voices, and was last updated by towhid 9 years, 9 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
February 26, 2015 at 8:49 pm 37758
towhid I have question about actions and hooks in this theme. I read about the topic and it says that you need to add_action(hookName, functionName) in order to be able to use do_action(hookName). If the above is true, then where is the add_action of 'woocommerce_create_product_variation'. There are many do_actions where I can't find the declaration (add_action). Please clarify this for me. Thanks!
February 28, 2015 at 12:43 pm 37838
towhid towhid

Hello Torres,

woocommerce_create_product_variation is the action hook of woocommerce. Dokan just inherit that action hook from woocommerce which is located ‘includes/class-wc-ajax.php’. You can inject some other code into that function by add_action.

Thank You 🙂

Viewing 1 Posts - 1 through 1 (of 1 total)