Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get product price woocommerce of specific id

$product = wc_get_product( $post_id );

$product->get_regular_price();
$product->get_sale_price();
$product->get_price();
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #product #price #woocommerce #specific #id
ADD COMMENT
Topic
Name
7+2 =