Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get product price wordpress

$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 #wordpress
ADD COMMENT
Topic
Name
9+3 =