CartController::get_product_id( WC_Product $product )

For a given product, get the product ID.


Description Description


Parameters Parameters

$product

(Required) Product object associated with the cart item.


Top ↑

Return Return

(int)


Top ↑

Source Source

File: packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.