WC_Order::get_order_stock_reduced()publicWC 7.0.0

Gets information about whether stock was reduced.

Method of the class: WC_Order{}

No Hooks.

Return

true|false.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_order_stock_reduced( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

Changelog

Since 7.0.0 Introduced.

WC_Order::get_order_stock_reduced() code WC 8.7.0

public function get_order_stock_reduced( string $context = 'view' ) {
	return wc_string_to_bool( $this->get_prop( 'order_stock_reduced', $context ) );
}