woocommerce_add_to_cart_handler

woocommerce_add_to_cart_handler

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_add_to_cart_handler') is found 1 times:

  • /includes/class-wc-form-handler.php line 805
    		if ( ! $adding_to_cart ) {
    			return;
    		}
    
    		$add_to_cart_handler = apply_filters( 'woocommerce_add_to_cart_handler', $adding_to_cart->get_type(), $adding_to_cart );
    
    		if ( 'variable' === $add_to_cart_handler || 'variation' === $add_to_cart_handler ) {
    			$was_added_to_cart = self::add_to_cart_handler_variable( $product_id );
    		} elseif ( 'grouped' === $add_to_cart_handler ) {
    			$was_added_to_cart = self::add_to_cart_handler_grouped( $product_id );
    		} elseif ( has_action( 'woocommerce_add_to_cart_handler_' . $add_to_cart_handler ) ) {