Automattic\WooCommerce\Internal\OrderReviews
Scheduler::log_skip
Log a skipped scheduling attempt with the reason.
Method of the class: Scheduler{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->log_skip( $order_id, $reason ): void;
- $order_id(int) (required)
- The order ID the attempt was for.
- $reason(string) (required)
- Human-readable reason the attempt was skipped.
Scheduler::log_skip() Scheduler::log skip code WC 10.9.4
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 )
);
}