For developers who need to extend PMPro Cron Management, the Add On provides action and filter hooks for its admin screens, cron event changes, custom schedules, and logging. The hook names are the same as WP Crontrol’s, so custom code written for WP Crontrol keeps working.
Admin Screens
crontrol/top_level_menu
Filters whether the Add On adds its own top-level Cron menu. Return false to keep the screens under the Tools and Settings menus only.
apply_filters( 'crontrol/top_level_menu', bool $show );
Parameters
$show: bool; Whether to add the top-level menu. Defaulttrue.
add_filter( 'crontrol/top_level_menu', '__return_false' );
crontrol/tabs
Filters which tab is active on the Cron screens. The Add On uses it to add the Cron Insights tab.
apply_filters( 'crontrol/tabs', array $tabs );
Parameters
$tabs: array; Whether each tab is the current screen, keyed by tab ID:events,schedules,logs,alerts,ai,add-event, andedit-event.
crontrol/links
Filters the tab links shown across the top of the Cron screens.
apply_filters( 'crontrol/links', array $links );
Parameters
$links: array; Tab links keyed by tab ID. Each is an array of the admin URL, the label, and optionally whether to show a New pill and whether to show a warning icon.
crontrol/tab-header
Fires after the tabs on each Cron screen. The Add On uses it to show cron system status notices on the Cron Events screen.
do_action( 'crontrol/tab-header', string $tab, array $tabs );
Parameters
$tab: string; The ID of the current tab.$tabs: array; Whether each tab is the current screen, keyed by tab ID.
crontrol/event_admin_messages
Filters the notices shown on the Cron Events screen after an event is added, edited, run, paused, resumed, or deleted. The Add On uses it to add a View logs or Enable logging link after Run now.
apply_filters( 'crontrol/event_admin_messages', array $messages, string $hook, int $message );
Parameters
$messages: array; Notices keyed by message ID. Each is an array of the message text, where%sis replaced with the hook name, and the notice type.$hook: string; The hook name of the event.$message: int; The ID of the message being shown.
Cron Events List
crontrol/event_table_columns
Filters the columns in the Cron Events list. The Add On uses it to add the Last Run column. Fill in a new column with the crontrol/event_table_column_output_{$column_name} filter.
apply_filters( 'crontrol/event_table_columns', array $cols );
Parameters
$cols: array; Column labels keyed by column ID.
crontrol/event_table_column_output_{$column_name}
Filters the content of a custom column in the Cron Events list. The dynamic part of the hook name is the column ID you added with crontrol/event_table_columns.
apply_filters( "crontrol/event_table_column_output_{$column_name}", string $output, \Crontrol\Event\Event $event );
Parameters
$output: string; The column content. Default empty string.$event: \Crontrol\Event\Event; The event for the current row.
crontrol/event-actions
Filters the action links shown when you hover over an event in the Cron Events list. The Add On uses it to add the Enable logging and Disable logging links. The Delete links are added after this filter runs.
apply_filters( 'crontrol/event-actions', array $links, \Crontrol\Event\Event $event );
Parameters
$links: array; Action link HTML keyed by action name, such asedit,run,pause, andresume.$event: \Crontrol\Event\Event; The event for the current row.
crontrol/filtered-events
Filters the groups of events behind the filter views on the Cron Events screen. Use it with crontrol/filter-types to add your own view.
apply_filters( 'crontrol/filtered-events', array $filtered, array $events );
Parameters
$filtered: array; Arrays of events keyed by view name, such asall,noaction,core, andpaused.$events: array; Every scheduled event.
crontrol/filter-types
Filters the names of the filter views on the Cron Events screen. A view only shows if crontrol/filtered-events has events for it.
apply_filters( 'crontrol/filter-types', array $types, string $hooks_type );
Parameters
$types: array; View labels keyed by view name.$hooks_type: string; The name of the current view.
Add and Edit Event Form
crontrol/manage/hookname
Fires after the Hook Name field on the Add Cron Event and Edit Cron Event form, for standard events. The Add On uses it to add the Enable logging of this hook checkbox. Use it to print extra help text or fields.
do_action( 'crontrol/manage/hookname', \Crontrol\Event\Event $existing );
Parameters
$existing: \Crontrol\Event\Event; The event being edited. On the Add Cron Event form this is an empty event whose hook name is an empty string.
crontrol/manage/args
Fires after the Arguments field on the Add Cron Event and Edit Cron Event form, for standard events. Use it to print extra help text or fields.
do_action( 'crontrol/manage/args', \Crontrol\Event\Event $existing );
Parameters
$existing: \Crontrol\Event\Event; The event being edited. On the Add Cron Event form this is an empty event whose hook name is an empty string.
crontrol/manage/next_run
Fires after the Next Run field on the Add Cron Event and Edit Cron Event form, for every event type. Use it to print extra help text or fields.
do_action( 'crontrol/manage/next_run', \Crontrol\Event\Event $existing );
Parameters
$existing: \Crontrol\Event\Event; The event being edited. On the Add Cron Event form this is an empty event whose hook name is an empty string.
crontrol/manage/schedule
Fires after the Schedule field on the Add Cron Event and Edit Cron Event form, for every event type. Use it to print extra help text or fields.
do_action( 'crontrol/manage/schedule', \Crontrol\Event\Event $existing );
Parameters
$existing: \Crontrol\Event\Event; The event being edited. On the Add Cron Event form this is an empty event whose hook name is an empty string.
crontrol/manage/url
Fires after the URL field on the Add Cron Event and Edit Cron Event form, for URL cron events. Use it to print extra help text or fields.
do_action( 'crontrol/manage/url', \Crontrol\Event\Event $existing );
Parameters
$existing: \Crontrol\Event\Event; The event being edited. On the Add Cron Event form this is an empty event whose hook name is an empty string.
crontrol/manage/method
Fires after the HTTP Method field on the Add Cron Event and Edit Cron Event form, for URL cron events. Use it to print extra help text or fields.
do_action( 'crontrol/manage/method', \Crontrol\Event\Event $existing );
Parameters
$existing: \Crontrol\Event\Event; The event being edited. On the Add Cron Event form this is an empty event whose hook name is an empty string.
crontrol/manage/eventname
Fires after the Display Name field on the Add Cron Event and Edit Cron Event form, for URL and PHP cron events. On the Add Cron Event form it fires once for each of those event types. Use it to print extra help text or fields.
do_action( 'crontrol/manage/eventname', \Crontrol\Event\Event $existing );
Parameters
$existing: \Crontrol\Event\Event; The event being edited. On the Add Cron Event form this is an empty event whose hook name is an empty string.
crontrol/manage/hookcode
Fires after the PHP Code field on the Add Cron Event and Edit Cron Event form, for PHP cron events. Use it to print extra help text or fields.
do_action( 'crontrol/manage/hookcode', \Crontrol\Event\Event $existing );
Parameters
$existing: \Crontrol\Event\Event; The event being edited. On the Add Cron Event form this is an empty event whose hook name is an empty string.
Cron Event Changes
crontrol/added_new_event
Fires after a new standard cron event is added from the Add Cron Event form.
do_action( 'crontrol/added_new_event', object $event );
Parameters
$event: object; An object containing the event’s data:hook,timestamp(Unix timestamp, UTC),schedule(string, orfalsefor a non-repeating event),args, andinterval(recurring events only).
crontrol/added_new_url_event
Fires after a new URL cron event is added from the Add Cron Event form.
do_action( 'crontrol/added_new_url_event', object $event );
Parameters
$event: object; An object containing the event’s data:hook,timestamp(Unix timestamp, UTC),schedule(string, orfalsefor a non-repeating event),args, andinterval(recurring events only).
crontrol/added_new_php_event
Fires after a new PHP cron event is added from the Add Cron Event form.
do_action( 'crontrol/added_new_php_event', object $event );
Parameters
$event: object; An object containing the event’s data:hook,timestamp(Unix timestamp, UTC),schedule(string, orfalsefor a non-repeating event),args, andinterval(recurring events only).
crontrol/edited_event
Fires after a standard cron event is saved from the Edit Cron Event form. Saving replaces the original event with a new one.
do_action( 'crontrol/edited_event', object $event, \Crontrol\Event\Event $original );
Parameters
$event: object; An object containing the event’s data:hook,timestamp(Unix timestamp, UTC),schedule(string, orfalsefor a non-repeating event),args, andinterval(recurring events only), for the new event.$original: \Crontrol\Event\Event; The original event.
crontrol/edited_url_event
Fires after a URL cron event is saved from the Edit Cron Event form. Saving replaces the original event with a new one.
do_action( 'crontrol/edited_url_event', object $event, \Crontrol\Event\Event $original );
Parameters
$event: object; An object containing the event’s data:hook,timestamp(Unix timestamp, UTC),schedule(string, orfalsefor a non-repeating event),args, andinterval(recurring events only), for the new event.$original: \Crontrol\Event\Event; The original event.
crontrol/edited_php_event
Fires after a PHP cron event is saved from the Edit Cron Event form. Saving replaces the original event with a new one.
do_action( 'crontrol/edited_php_event', object $event, \Crontrol\Event\Event $original );
Parameters
$event: object; An object containing the event’s data:hook,timestamp(Unix timestamp, UTC),schedule(string, orfalsefor a non-repeating event),args, andinterval(recurring events only), for the new event.$original: \Crontrol\Event\Event; The original event.
crontrol/deleted_event
Fires after a cron event is deleted from the Cron Events screen, one at a time or with the Delete bulk action.
do_action( 'crontrol/deleted_event', \Crontrol\Event\Event $event );
Parameters
$event: \Crontrol\Event\Event; The deleted event.
crontrol/deleted_all_with_hook
Fires after the Delete all events with this hook link deletes every event that uses a hook.
do_action( 'crontrol/deleted_all_with_hook', string $hook, int $deleted );
Parameters
$hook: string; The hook name.$deleted: int; The number of events deleted.
crontrol/ran_event
Fires after a cron event is sent to WP-Cron to run now, from the Run now link or the run event ability.
do_action( 'crontrol/ran_event', \Crontrol\Event\Event $event );
Parameters
$event: \Crontrol\Event\Event; The copy of the event scheduled to run now.
crontrol/paused_hook
Fires after a hook is paused, from the Cron Events screen or the pause hook ability.
do_action( 'crontrol/paused_hook', string $hook );
Parameters
$hook: string; The hook name.
crontrol/resumed_hook
Fires after a paused hook is resumed, from the Cron Events screen or the resume hook ability.
do_action( 'crontrol/resumed_hook', string $hook );
Parameters
$hook: string; The hook name.
Cron Schedules
crontrol/added_new_schedule
Fires after a custom cron schedule is added.
do_action( 'crontrol/added_new_schedule', string $name, int $interval, string $display );
Parameters
$name: string; The internal name of the schedule.$interval: int; The interval in seconds.$display: string; The display name of the schedule.
crontrol/deleted_schedule
Fires after a custom cron schedule is deleted.
do_action( 'crontrol/deleted_schedule', string $name );
Parameters
$name: string; The internal name of the schedule.
Logging
crontrol/should_log
Filters whether runs of logged hooks in the current request are recorded. By default only runs during a cron request are logged.
apply_filters( 'crontrol/should_log', bool $doing_cron );
Parameters
$doing_cron: bool; Whether the request is running cron events. Default is the result ofwp_doing_cron().
crontrol/log_event_args
Filters whether a cron event’s arguments are stored in its log entry. Off by default because arguments can contain personal data or secrets. When on, up to 10 arguments are stored as short descriptions. For URL and PHP cron events, only the display name and shortened URL are ever stored.
apply_filters( 'crontrol/log_event_args', bool $store, string $hook );
Parameters
$store: bool; Whether to store the arguments. Defaultfalse.$hook: string; The hook name.
crontrol/log_retention_days
Filters the number of days cron log entries are kept. Values below 1 are raised to 1.
apply_filters( 'crontrol/log_retention_days', int $days );
Parameters
$days: int; Number of days. Default30.
crontrol/metric_retention_days
Filters the number of days the hourly and daily metrics behind Cron Insights are kept. Values below 7 are raised to 7.
apply_filters( 'crontrol/metric_retention_days', int $days );
Parameters
$days: int; Number of days. Default90.
Write to the Cron Log
These are actions you fire from your own code. While a logged cron event is running, the message is saved in that run’s log, shown in its run details. Outside a logged run, nothing is recorded. The Add On also records messages sent to the matching Query Monitor actions, such as qm/debug.
crontrol/{$level}
Records a message in the log of the cron event run in progress. Replace {$level} with one of emergency, alert, critical, error, warning, notice, info, or debug. A message at warning level or above marks the run as Errored, which can trigger a cron alert.
do_action( "crontrol/{$level}", mixed $message, array $context );
Parameters
$message: mixed; The message. A string, aWP_Error, an exception, or another value, which is described in short form. Placeholders such as{order_id}are replaced with values from$context.$context: array; Optional. Values for the placeholders in the message.
do_action( 'crontrol/info', 'Sent {count} renewal reminders.', array( 'count' => $count ) );
crontrol/log
Records a message at a level you pass in. Unknown levels are ignored.
do_action( 'crontrol/log', string $level, mixed $message, array $context );
Parameters
$level: string; One of the levels listed forcrontrol/{$level}.$message: mixed; The message.$context: array; Optional. Values for the placeholders in the message.
crontrol/assert
Records whether a condition is true. A passing assertion is logged at debug level. A failing one is logged at error level and marks the run as Errored.
do_action( 'crontrol/assert', mixed $assertion, string $message, mixed $value );
Parameters
$assertion: mixed; The condition to check.$message: string; Optional. A description of the assertion.$value: mixed; Optional. A value to log with a failing assertion.
Get Support From Our Team of Experts
Have a question about how to use this feature? Our Support Page outlines three ways to get support.
Our Max plans include hands-on help customizing your membership site and implementing new features. Upgrade to PMPro Max now »
Last updated on December 4, 2026