>, unparsed: int, threshold: string} $result Deliveries::read(). * @var array{pending: int, failed: int, oldest_late: int}|null $queue Deliveries::queue(). * @var array $names Webhook ID => name ('' = deleted). * @var string $logs_url WooCommerce's delivery logs. * @var \SmartWP\AdminPowerups\Modules\WebhookHealth\Module $this Module. */ use SmartWP\AdminPowerups\Admin\Icons; use SmartWP\AdminPowerups\Modules\WebhookHealth\LogParser; defined( 'ABSPATH' ) || exit; $apwc_settings_url = admin_url( 'admin.php?page=wc-status&tab=logs&view=settings' ); $apwc_notes = array( 'off' => __( 'WooCommerce logging is off, so deliveries aren’t recorded. Turn it on in WooCommerce → Status → Logs → Settings.', 'admin-powerups-for-woocommerce' ), /* translators: %s: log level, e.g. "warning". */ 'threshold' => sprintf( __( 'WooCommerce only keeps log entries at “%s” or above. Deliveries are logged as “info”, so they aren’t recorded.', 'admin-powerups-for-woocommerce' ), $result['threshold'] ), /* translators: %s: log handler class name. */ 'other' => sprintf( __( 'Deliveries are logged by another log handler (%s), which this tab can’t read. Open them in WooCommerce.', 'admin-powerups-for-woocommerce' ), $result['handler'] ), 'unreadable' => __( 'Couldn’t read WooCommerce’s log. Open the delivery logs in WooCommerce instead.', 'admin-powerups-for-woocommerce' ), 'unavailable' => __( 'This WooCommerce version doesn’t say where it logs deliveries. Open the delivery logs in WooCommerce.', 'admin-powerups-for-woocommerce' ), ); ?>

= 5 * MINUTE_IN_SECONDS ) { echo ' '; /* translators: %s: time span, e.g. "2 hours". */ echo esc_html( sprintf( __( 'The oldest waiting delivery is %s late. Check that WP-Cron or Action Scheduler runs.', 'admin-powerups-for-woocommerce' ), human_time_diff( time() - $queue['oldest_late'], time() ) ) ); } ?>

0 ) : ?>
0 ) : ?>