WC_Order::get_recorded_sales()publicWC 1.0

Gets information about whether sales were recorded.

Метод класса: WC_Order{}

Хуков нет.

Возвращает

true|false. True if sales were recorded, false otherwise.

Использование

$WC_Order = new WC_Order();
$WC_Order->get_recorded_sales( $context );
$context(строка)
What the value is for. Valid values are view and edit.
По умолчанию: 'view'

Код WC_Order::get_recorded_sales() WC 7.1.0

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