Automattic\WooCommerce\Internal\Logging

OrderLogsDeletionProcessor::throw_doing_it_wrongprivateWC 1.0

Throw a "doing it wrong" error.

Method of the class: OrderLogsDeletionProcessor{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->throw_doing_it_wrong( $function_name );
$function_name(string) (required)
Class and function name to include in the error.

OrderLogsDeletionProcessor::throw_doing_it_wrong() code WC 10.8.1

private function throw_doing_it_wrong( string $function_name ) {
	$this->legacy_proxy->call_function(
		'wc_doing_it_wrong',
		$function_name,
		"This processor shouldn't be enqueued when the orders data store in use is neither the HPOS one nor the CPT one. Just delete the order debug logs directly.",
		'10.3.0'
	);
}