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 9.5.1
public function get_price( $context = 'view' ) { return $this->get_prop( 'price', $context ); }