WC_Product::get_price
Returns the product's active price.
Метод класса: WC_Product{}
Хуков нет.
Возвращает
Строку. price
Использование
$WC_Product = new WC_Product(); $WC_Product->get_price( $context );
- $context(строка)
- What the value is for. Valid values are view and edit.
По умолчанию: 'view'
Код WC_Product::get_price() WC Product::get price WC 10.3.4
public function get_price( $context = 'view' ) {
return $this->get_prop( 'price', $context );
}