WordPress at Your Fingertips
function is not described

WC_Order_Data_Store_CPT::get_stock_reduced() public WC 1.0

Gets information about whether stock was reduced.

{} It's a method of the class: WC_Order_Data_Store_CPT{}

No Hooks.

Return

true|false.

Usage

$WC_Order_Data_Store_CPT = new WC_Order_Data_Store_CPT();
$WC_Order_Data_Store_CPT->get_stock_reduced( $order );
$order(WC_Order|int) (required)
Order ID or order object.

Code of WC_Order_Data_Store_CPT::get_stock_reduced() WC 5.7.1

public function get_stock_reduced( $order ) {
	$order_id = WC_Order_Factory::get_order_id( $order );
	return wc_string_to_bool( get_post_meta( $order_id, '_order_stock_reduced', true ) );
}