$status Events::status(). * @var int $total Events matching. * @var int $pages Pages. * @var array> $rows Rows on this page (Events::rows()). * @var array $top Hooks with the most events. * @var array> $orphans Hooks with no callback. * @var bool $readonly Another plugin replaces WP-Cron. * @var bool $advanced The user may delete (Advanced). * @var int $now Current time. * @var \SmartWP\AdminPowerups\Modules\CronInspector\Module $this Module. */ use SmartWP\AdminPowerups\Admin\AdminPage; use SmartWP\AdminPowerups\Admin\Components; use SmartWP\AdminPowerups\Admin\Icons; use SmartWP\AdminPowerups\Modules\CronInspector\Actions; use SmartWP\AdminPowerups\Modules\CronInspector\Events; use SmartWP\AdminPowerups\Modules\CronInspector\Module; use SmartWP\AdminPowerups\Modules\CronInspector\ProtectedHooks; use SmartWP\AdminPowerups\Support\DevGuard; defined( 'ABSPATH' ) || exit; $apwc_counts = $status['counts']; $apwc_filtered = '' !== $filter['s'] || '' !== $filter['status']; $apwc_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); $apwc_when = static function ( $timestamp ) use ( $now ) { $timestamp = (int) $timestamp; if ( abs( $timestamp - $now ) < 5 ) { return __( 'Now', 'admin-powerups-for-woocommerce' ); } return $timestamp <= $now /* translators: %s: time span, e.g. "3 hours". */ ? sprintf( __( '%s ago', 'admin-powerups-for-woocommerce' ), human_time_diff( $timestamp, $now ) ) /* translators: %s: time span, e.g. "3 hours". */ : sprintf( __( 'In %s', 'admin-powerups-for-woocommerce' ), human_time_diff( $now, $timestamp ) ); }; $apwc_statuses = array( 'due' => __( 'Due now', 'admin-powerups-for-woocommerce' ), 'overdue' => __( 'Overdue', 'admin-powerups-for-woocommerce' ), 'orphaned' => __( 'No callback', 'admin-powerups-for-woocommerce' ), ); $apwc_root = wp_normalize_path( ABSPATH ); $apwc_can_bulk = $advanced && ! $readonly; // The check column only shows when a row on this page can be deleted. $apwc_has_check = $apwc_can_bulk && (bool) array_filter( $rows, static fn( $row ) => '' === $row['protected'] ); ?>

$apwc_row ) : ?>
Module::url( array_merge( $filter, array( 'paged' => $page ) ) ); ?>

    __( 'inactive', 'admin-powerups-for-woocommerce' ), 'not-installed' => __( 'not installed', 'admin-powerups-for-woocommerce' ), 'active' => __( 'active', 'admin-powerups-for-woocommerce' ), )[ $apwc_orphan['owner']['state'] ] ?? ''; ?>

    $apwc_count ) : ?>