internal_woocommerce_cart_item_added_from_user_request

internal_woocommerce_cart_item_added_from_user_request

Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.10.9.4

do_action('internal_woocommerce_cart_item_added_from_user_request') is found 1 times:

  • /src/StoreApi/Routes/V1/CartAddItem.php line 143
    			 * @param int|float $quantity   Quantity added to the cart.
    			 *
    			 * @since 10.6.0
    			 */
    			do_action( 'internal_woocommerce_cart_item_added_from_user_request', $product_id, $quantity );
    		}
    
    		$response = rest_ensure_response( $this->schema->get_item_response( $this->cart_controller->get_cart_for_response() ) );
    		$response->set_status( 201 );
    		return $response;
    	}