WC_Order::get_recorded_sales()publicWC 1.0

Gets information about whether sales were recorded.

Method of the class: WC_Order{}

No Hooks.


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


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

WC_Order::get_recorded_sales() code WC 8.9.0

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