Automattic\WooCommerce\Internal\OrderReviews
Scheduler::log_skip
Log a skipped scheduling attempt with the reason.
Метод класса: Scheduler{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->log_skip( $order_id, $reason ): void;
- $order_id(int) (обязательный)
- The order ID the attempt was for.
- $reason(строка) (обязательный)
- Human-readable reason the attempt was skipped.
Код Scheduler::log_skip() Scheduler::log skip WC 11.2.2
private function log_skip( int $order_id, string $reason ): void {
wc_get_logger()->info(
sprintf(
/* translators: 1: order ID, 2: skip reason */
__( 'Skipped scheduling review-request email for order %1$d: %2$s.', 'woocommerce' ),
$order_id,
$reason
),
array( 'source' => self::LOG_SOURCE )
);
}