WC_Order::get_recorded_sales()publicWC 1.0

Gets information about whether sales were recorded.

Method of the class: WC_Order{}

No Hooks.

Return

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

Usage

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

WC_Order::get_recorded_sales() code WC 8.6.1

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