Answers for "get product price by id woocommerce snippet"

PHP
0

get product price by id woocommerce snippet

/**
 * Get product price by product ID.
 */
function wc_get_product_price( $product_id ) {
    return ( $product = wc_get_product( $product_id ) ) ? $product->get_price() : false;
}
Posted by: Guest on July-23-2020

Code answers related to "get product price by id woocommerce snippet"

Browse Popular Code Answers by Language