Home Forums Theme Support Dokan do_actions in theme

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  towhid 4 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #37758

    Post count: 17

    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.



    Post count: 4505

    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 2 posts - 1 through 2 (of 2 total)

The topic ‘do_actions in theme’ is closed to new replies.