WC_Order::get_order_stock_reduced()
Gets information about whether stock was reduced.
Метод класса: WC_Order{}
Хуков нет.
Возвращает
true|false
.
Использование
$WC_Order = new WC_Order(); $WC_Order->get_order_stock_reduced( $context );
- $context(строка)
- What the value is for. Valid values are view and edit.
По умолчанию: 'view'
Список изменений
С версии 7.0.0 | Введена. |
Код WC_Order::get_order_stock_reduced() WC Order::get order stock reduced WC 9.6.1
public function get_order_stock_reduced( string $context = 'view' ) { return wc_string_to_bool( $this->get_prop( 'order_stock_reduced', $context ) ); }