woocommerce_ . $product->get_type(
woocommerce_ . $product->get_type(
Appears in: woocommerce.11.0.0
Hook Type: action
Displaying hooks found in version: woocommerce.11.0.0do_action('woocommerce_ . $product->get_type(') is found 2 times:
- /includes/wc-template-functions.php line 2145
* Single product add to cart action. * * @since 1.0.0 */ do_action( 'woocommerce_' . $product->get_type() . '_add_to_cart' ); } } } if ( ! function_exists( 'woocommerce_simple_add_to_cart' ) ) { /** - /src/Blocks/BlockTypes/AddToCartForm.php line 224
* Trigger the single product add to cart action for each product type. * * @since 9.7.0 */ do_action( 'woocommerce_' . $product->get_type() . '_add_to_cart' ); /** * Remove the hook to prevent potential conflicts with existing code and extensions. */ remove_action( 'woocommerce_variation_add_to_cart', 'woocommerce_simple_add_to_cart', 10 );