|null $summary Summary (null when unavailable). * @var array|null $result Current list page (null when unavailable). * @var array $filter Current filters. * @var \SmartWP\AdminPowerups\Modules\ScheduledActions\Module $this Module. */ use SmartWP\AdminPowerups\Admin\AdminPage; use SmartWP\AdminPowerups\Admin\Components; use SmartWP\AdminPowerups\Admin\Icons; use SmartWP\AdminPowerups\Modules\ScheduledActions\Jobs; use SmartWP\AdminPowerups\Modules\ScheduledActions\Module; use SmartWP\AdminPowerups\Modules\ScheduledActions\Monitor; use SmartWP\AdminPowerups\Support\DevGuard; defined( 'ABSPATH' ) || exit; if ( '' !== $unavailable || ! $summary || ! $result ) : ?>

0 && $apwc_oldest && $apwc_oldest < time() - Monitor::grace(); $apwc_lists = array( 'failed' => array( __( 'Failed', 'admin-powerups-for-woocommerce' ), $apwc_counts['failed'] ), 'overdue' => array( __( 'Overdue', 'admin-powerups-for-woocommerce' ), $summary['overdue'] ), 'running' => array( __( 'Running', 'admin-powerups-for-woocommerce' ), $apwc_counts['in-progress'] ), ); $apwc_empty = array( 'failed' => __( 'No failed actions', 'admin-powerups-for-woocommerce' ), 'overdue' => __( 'Nothing overdue', 'admin-powerups-for-woocommerce' ), 'running' => __( 'Nothing running right now', 'admin-powerups-for-woocommerce' ), ); $apwc_empty_text = array( 'failed' => __( 'Actions that fail show here, with their last error.', 'admin-powerups-for-woocommerce' ), 'overdue' => __( 'Actions still waiting after their time show here.', 'admin-powerups-for-woocommerce' ), 'running' => __( 'Actions the queue is working on show here.', 'admin-powerups-for-woocommerce' ), ); $apwc_cron = \SmartWP\AdminPowerups\Plugin::instance()->registry()->get( 'cron-inspector' ); $apwc_cron_url = $apwc_cron && $apwc_cron->is_enabled() && $apwc_cron->user_can_access() ? AdminPage::url( 'cron-inspector' ) : ''; $apwc_link = static fn( $page ) => Module::url( array_merge( $filter, array( 'paged' => $page ) ) ); ?>

__( 'Actions table', 'admin-powerups-for-woocommerce' ), 'logs' => __( 'Logs table', 'admin-powerups-for-woocommerce' ), ); ?> $apwc_label ) : ?>

10 ) : ?>

'cancel', 'consequence' => __( 'The selected actions won’t run. A repeating action stops repeating. This can’t be undone; canceled actions stay in the history.', 'admin-powerups-for-woocommerce' ), 'button' => __( 'Cancel actions', 'admin-powerups-for-woocommerce' ), 'action' => 'cancel', 'hidden' => true, ) ); } elseif ( $apwc_advanced ) { Components::typed_confirm( array( 'confirm' => 'delete', 'consequence' => __( 'The selected actions and their logs are deleted for good. Only finished, failed or canceled actions are deleted.', 'admin-powerups-for-woocommerce' ), 'button' => __( 'Delete actions', 'admin-powerups-for-woocommerce' ), 'action' => 'delete', 'hidden' => true, ) ); } ?>

action_id; $apwc_hook_name = (string) $apwc_row->hook; $apwc_log = is_array( $apwc_row->last_log ) ? $apwc_row->last_log['message'] : ''; $apwc_state = Monitor::state( $apwc_row, $apwc_log ); $apwc_charge = Jobs::may_charge( $apwc_hook_name ); $apwc_protected = Jobs::is_protected( $apwc_hook_name, (string) ( $apwc_row->group_slug ?? '' ) ); $apwc_when = Monitor::timestamp( (string) ( 'overdue' === $apwc_list ? $apwc_row->scheduled_date_gmt : $apwc_row->last_attempt_gmt ) ); $apwc_args = Monitor::args_line( $apwc_row ); $apwc_can_run = 'overdue' === $apwc_list && null === Jobs::refuse( $apwc_row, 'run' ); $apwc_can_retry = 'failed' === $apwc_list && null === Jobs::refuse( $apwc_row, 'retry' ); ?>
/> # group_slug ) ) : ?> · group_slug ); ?> ·

.

'purge', 'consequence' => __( 'Deletes the chosen actions and their logs for good: finished (or scheduled, for canceled) more than that many days ago.', 'admin-powerups-for-woocommerce' ), 'button' => __( 'Purge', 'admin-powerups-for-woocommerce' ), 'action' => 'purge', ) ); ?>