WooCommerce woocommerce_no_products_found hook overridden by theme template
I am trying to execute code on the product attribute page when there are no products. The problem is that the hook: add_action( 'woocommerce_no_products_found', 'wc_no_products_found' ); is not working. When I investigated, I found my theme function is overriding the hook: if (!function_exists('cyberstore_mikado_woocommerce_content')) { /** * Output WooCommerce content. * * This function is only used in the optional 'woocommerce.php' template * which people can add to their themes to add basic woocommerce support * without hooks or modifying core templates. * * @access public * @return void */
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.