M
M
Maxim Devda2017-01-31 02:04:10
PHP
Maxim Devda, 2017-01-31 02:04:10

Where to view WP Woocommerce functions attached to a hook?

For example, take the code in the content-product.php file

/**
   * woocommerce_before_shop_loop_item hook.
   *
   * @hooked woocommerce_template_loop_product_link_open - 10
   */
  do_action( 'woocommerce_before_shop_loop_item' );

  /**
   * woocommerce_before_shop_loop_item_title hook.
   *
   * @hooked woocommerce_show_product_loop_sale_flash - 10
   * @hooked woocommerce_template_loop_product_thumbnail - 10
   */
  do_action( 'woocommerce_before_shop_loop_item_title' );

There are probably functions or calls to woocommerce_template_loop_product_link_open , woocommerce_show_product_loop_sale_flash . (since they are "hooked" it means there is somewhere their implementation)
Where can I find these functions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2017-01-31
@maksdevda

hookr.io/plugins/woocommerce/#index=t&search=wooco...
https://github.com/woocommerce/woocommerce/search?...
https://docs.woocommerce.com/wc-apidocs/source- fun...
to choose from

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question