ActionScheduler_ListTable
Located in classes/ActionScheduler_ListTable.php.
Implements the WordPress admin list table for scheduled actions, including row/bulk actions, filtering, and notices.
Public Methods
__construct( ActionScheduler_Store $store, ActionScheduler_Logger $logger, ActionScheduler_QueueRunner $runner )
Initialize the list table, configure columns, row actions, and screen options.
- Parameters: store, logger, queue runner instances.
set_items_per_page_option( $status, $option, $value )
Return the value for the per-page screen option.
- Parameters:
$status(mixed),$option(string),$value(int) - Returns:
int
column_args( array $row )
Render the “Arguments” column as a list of key/value pairs.
- Parameters:
$row(array) - Returns:
string
column_log_entries( array $row )
Render log entries inline for the “Log” column.
- Parameters:
$row(array) - Returns:
string
display_admin_notices()
Render admin notices related to queue processing, missing tables, or manual actions.
- Returns:
void
column_schedule( $row )
Render the “Scheduled Date” column using a human-friendly display string.
- Parameters:
$row(array) - Returns:
string
prepare_items()
Prepare items for display (query actions, build rows, set pagination).
- Returns:
void
Protected Methods
These are internal helpers but are documented for completeness because they define table behavior:
get_recurrence( $action )
Return a human-friendly recurrence label.
- Parameters:
$action(ActionScheduler_Action) - Returns:
string
get_log_entry_html( ActionScheduler_LogEntry $log_entry, DateTimezone $timezone )
Format a single log entry as HTML.
- Returns:
string
maybe_render_actions( $row, $column_name )
Only render row actions for pending actions.
- Returns:
string
get_schedule_display_string( ActionScheduler_Schedule $schedule )
Return a human-friendly string for the schedule’s date and relative time.
- Returns:
string
bulk_delete( array $ids, $ids_sql )
Delete actions by ID in a bulk operation.
- Parameters:
$ids(int[]),$ids_sql(string; unused)
row_action_cancel( $action_id )
Cancel an action via the row action handler.
- Parameters:
$action_id(int)
row_action_run( $action_id )
Run an action via the row action handler.
- Parameters:
$action_id(int)
recreate_tables()
Recreate Action Scheduler data tables when missing.
process_row_action( $action_id, $row_action_type )
Execute “run” or “cancel” row actions and store admin notices.
- Parameters:
$action_id(int),$row_action_type(string)
display_filter_by_status()
Populate status counts and render status filter links.
get_search_box_button_text()
Return the search box label.
get_per_page_option_name()
Return the screen option name for per-page configuration.
Filters
action_scheduler_list_table_column_args— filter argument column output.action_scheduler_enable_recreate_data_store— control auto table recreation.