Get product price by product ID in WooCommerce

/**
 * Get product price by product ID
 */
function wc_get_product_price( $product_id ) {
	$_product = wc_get_product( $product_id );
	$price = $_product->get_price();
	return $price;
}

No comments yet.

Leave a Reply