Automattic\WooCommerce\Internal\Logging
OrderLogsDeletionProcessor::throw_doing_it_wrong
Throw a "doing it wrong" error.
Метод класса: OrderLogsDeletionProcessor{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->throw_doing_it_wrong( $function_name );
- $function_name(строка) (обязательный)
- Class and function name to include in the error.
Код OrderLogsDeletionProcessor::throw_doing_it_wrong() OrderLogsDeletionProcessor::throw doing it wrong WC 11.2.2
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'
);
}