WC_Product::get_price
Returns the product's active price.
Method of the class: WC_Product{}
No Hooks.
Returns
String. price
Usage
$WC_Product = new WC_Product(); $WC_Product->get_price( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
WC_Product::get_price() WC Product::get price code WC 10.3.6
public function get_price( $context = 'view' ) {
return $this->get_prop( 'price', $context );
}