Strata Site Audit 1.3.0 has 56 actions and 92 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Strata Site Audit fires an action
add_action( 'strata_scan_cancelled', function( $scan_id ) {
// Your code runs here.
}, 10, 1 );
// Change a value Strata Site Audit is about to use
add_filter( 'strata_busy_retry_pauses', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * This action is documented in src/Engine/ScanRunner.php */ do_action( 'strata_scan_cancelled', $scan_id ); -
/** * Fires after a scheduled action has been completed. */ do_action( 'action_scheduler_completed_action', $action_id ); -
/** * Fires when Action Scheduler is ready: it is safe to use the procedural API * after this point. */ do_action( 'action_scheduler_init' ); -
/** * Filters the pauses, in seconds, before each later try of a URL whose host * answered busy (429, 502, 503 or 504). One entry per try; an empty array * turns the later tries off. */ apply_filters( 'strata_busy_retry_pauses', self::BUSY_PAUSES ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_post_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_args", $args ); -
/** * Filters the post arguments used during an async request. */ apply_filters( "{$this->identifier}_query_url", $url ); -
action_scheduler_allowed_nested_schedule_classes
filter Used by 26 plugins β Copy link Customise this hook/** * Filters the list of classes that are permitted as nested properties of a * schedule object. */ apply_filters( 'action_scheduler_allowed_nested_schedule_classes', self::DEFAULT_NESTED_CLASSES ); -
/** * Allow custom processing before updating a table schema. */ do_action( 'action_scheduler_before_schema_update', $table, $this->db_version ); -
action_scheduler_claim_actions_order_by
filter Used by 112 plugins β Copy link Customise this hook/** * Sets the order-by clause used in the action claim query. */ apply_filters( 'action_scheduler_claim_actions_order_by', 'ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC', $claim_id, $hooks ); -
/** * Filter the batch size when cleaning the queue. */ apply_filters( 'action_scheduler_cleanup_batch_size', $this->batch_size ); -
action_scheduler_db_supports_skip_locked
filter Used by 76 plugins β Copy link Customise this hook/** * Filter whether the database supports the SKIP LOCKED modifier for queries. */ apply_filters( 'action_scheduler_db_supports_skip_locked', $is_supported ); -
action_scheduler_default_cleaner_statuses
filter Used by 98 plugins β Copy link Customise this hook/** * Filter the statuses when cleaning the queue. */ apply_filters( 'action_scheduler_default_cleaner_statuses', $this->default_statuses_to_purge ); -
action_scheduler_enable_failed_action_cleanup
filter Used by 32 plugins β Copy link Customise this hook/** * Filter whether failed actions are purged. Return false to disable failed * action cleanup. */ apply_filters( 'action_scheduler_enable_failed_action_cleanup', true ); -
action_scheduler_enforce_schedule_allowed_classes
filter Used by 26 plugins β Copy link Customise this hook/** * Filters whether Action Scheduler rejects schedule blobs referencing * unexpected classes. */ apply_filters( 'action_scheduler_enforce_schedule_allowed_classes', true ); -
action_scheduler_ensure_recurring_actions
action Used by 76 plugins β Copy link Customise this hook/** * Fires to allow extensions to verify and ensure their recurring actions are * scheduled. */ do_action( 'action_scheduler_ensure_recurring_actions' ); -
/** * Allows 3rd party code to add extra action counts (used in filters in the * list table). */ apply_filters( 'action_scheduler_extra_action_counts', $extra_actions ); -
/** * Notify 3rd party code of exceptions when deleting a completed action older * than the retention period */ do_action( "action_scheduler_failed_{$context}_action_deletion", $action_id, $e, $lifespan, count( $actions_to_delete ) ); -
/** * Runs when action execution fails. */ do_action( 'action_scheduler_failed_execution', $action_id, $e, $context ); -
/** * Runs when action validation fails. */ do_action( 'action_scheduler_failed_validation', $action_id, $e, $context ); -
/** * Fires in the early stages of Action Scheduler init hook. */ do_action( 'action_scheduler_pre_init' ); -
action_scheduler_queue_runner_flush_cache
filter Used by 120 plugins β Copy link Customise this hook/** * When an external object cache is in use, and when wp_cache_flush_runtime() * is not available, then normally the cache will not be flushed after * processing a batch of actions (to avoid a performance penalty for other * processes). */ apply_filters( 'action_scheduler_queue_runner_flush_cache', false ); -
action_scheduler_recurring_action_failure_threshold
filter Used by 100 plugins β Copy link Customise this hook/** * Controls the failure threshold for recurring actions. */ apply_filters( 'action_scheduler_recurring_action_failure_threshold', 5 ); -
action_scheduler_recurring_action_is_consistently_failing
filter Used by 96 plugins β Copy link Customise this hook/** * If a recurring action is assessed as consistently failing, it will not be * rescheduled. This hook provides a way to observe and optionally override * that assessment. */ apply_filters( 'action_scheduler_recurring_action_is_consistently_failing', $first_action_id_with_the_same_hook === $first_failing_action_id, $action ); -
/** * Filter the minimum scheduled date age for action deletion. */ apply_filters( 'action_scheduler_retention_period', $this->month_in_seconds ); -
action_scheduler_retention_period_for_failed
filter Used by 33 plugins β Copy link Customise this hook/** * Set the retention period in seconds for actions with a failed status. If the * action_scheduler_default_cleaner_statuses filter includes a failed status, * this filter result will be ignored, and the retention period for failed * actions will match that of other statuses. */ apply_filters( 'action_scheduler_retention_period_for_failed', 3 * $this->month_in_seconds ); -
action_scheduler_stored_action_instance
filter Used by 120 plugins β Copy link Customise this hook/** * Allow 3rd party code to change the instantiated action for a given hook, * args, schedule and group. */ apply_filters( 'action_scheduler_stored_action_instance', $action, $hook, $args, $schedule, $group, $priority ); -
action_scheduler_unexpected_schedule_class
action Used by 26 plugins β Copy link Customise this hook/** * Fires when a stored schedule blob references a class Action Scheduler did * not expect. */ do_action( 'action_scheduler_unexpected_schedule_class', $offending_class, $this->outer_class, $this->potential_offenders, $rejected ); -
/** * Provides an opportunity to short-circuit the default process for enqueuing * async actions. */ apply_filters( 'pre_as_enqueue_async_action', null, $hook, $args, $group, $priority, $unique ); -
/** * Provides an opportunity to short-circuit the default process for enqueuing * cron actions. */ apply_filters( 'pre_as_schedule_cron_action', null, $timestamp, $schedule, $hook, $args, $group, $priority, $unique ); -
/** * Provides an opportunity to short-circuit the default process for enqueuing * recurring actions. */ apply_filters( 'pre_as_schedule_recurring_action', null, $timestamp, $interval_in_seconds, $hook, $args, $group, $priority, $unique ); -
/** * Provides an opportunity to short-circuit the default process for enqueuing * single actions. */ apply_filters( 'pre_as_schedule_single_action', null, $timestamp, $hook, $args, $group, $priority, $unique ); -
/** * The page caches Strata purges after a fix, as name => callable. */ apply_filters( 'strata_cache_purgers', $list ); -
/** * Handles a report format other than csv. */ apply_filters( 'strata_cli_report', null, $format, $scan, (array) $assoc_args ); -
/** * Filters how many queued URLs the link crawler probes per batch. */ apply_filters( 'strata_crawl_batch_size', 1, $ctx ); -
/** * Filters the code Strata searches for the name of a table or scheduled event * of an unknown owner before it lets the item be moved. */ apply_filters( 'strata_database_code_places', $out ); -
/** * Filters the folder names of the plugins Strata treats as installed when it * looks for database leftovers. */ apply_filters( 'strata_database_installed', $out ); -
/** * Filters whether Strata wakes the Action Scheduler async runner after * queueing a batch. Off under WP-CLI: the command runs the scan itself, and a * web request started at the same time would work on the same scan (and, on a * single-threaded dev server, deadlock). */ apply_filters( 'strata_dispatch_async_runner', ! ( defined( 'WP_CLI' ) && WP_CLI ) ); -
/** * Filters the download name of an export. */ apply_filters( 'strata_export_filename', 'strata-findings-' . gmdate( 'Y-m-d' ) . '.csv', 'csv', $scan ); -
/** * Filters the finding filters of a CSV export (Pro: only issues confirmed on * the live site). */ apply_filters( 'strata_export_filters', array(), $req ); -
/** * Filters the fix types available on this site. Pro registers its fixers here, * so a licensed user running the free build is not offered a fix that does not * exist. */ apply_filters( 'strata_fix_types', array() ); -
/** * Filters the HTTP arguments Strata uses for link checks. */ apply_filters( 'strata_http_args', $args ); -
/** * Filters the text shown for a stored link error. The stored error comes in, * the text to show goes out. A callback maps the string and nothing more: * lists ask for every row, so it must not read the database or send a request. * With no callback the stored error is shown as it is. What a callback returns * is shown as plain text, cut to 200 characters. */ apply_filters( 'strata_link_error_label', $error ); -
/** * Filters the largest file size, in bytes, that the media audit hashes for * duplicate detection. */ apply_filters( 'strata_media_hash_limit', self::HASH_LIMIT ); -
/** * Whether the live media use check may search post content and Elementor data * with one REGEXP each. Return false on a database whose REGEXP misbehaves, to * always use one LIKE per needle (slower on large sites). */ apply_filters( 'strata_media_use_regexp', true ); -
/** * Filters the folders under this site's address that belong to other sites and * are not crawled as its pages. */ apply_filters( 'strata_other_site_folders', $folders ); -
/** * Fires after Strata purged the page caches it knows, so other caches can * purge too. */ do_action( 'strata_purge_caches' ); -
/** * Whether Strata purges page caches after a fix or an undo. */ apply_filters( 'strata_purge_caches_after_fix', true ); -
/** * Filters the check of a link finding's address on another site, when no plan * checked it. Return what a request saw, in the shape HttpProbe::probe() * returns (`status`, `error`, `loop`, `checked`), to answer in Strata's place: * Strata then sends no request of its own. Return null to let Strata check the * address. A callback that refuses to request the address sets `refused` and * gives the reason as `... */ apply_filters( 'strata_recheck_external', null, $url, $f ); -
/** * Filters whether Check again may request an address on another site. Return a * short reason, as a plain sentence, to refuse it: no request is sent then, by * Strata or by a plan, the answer says the address was not checked and the * finding stays open. Return the value you were given to refuse nothing. */ apply_filters( 'strata_recheck_refusal', null, $url, $f ); -
/** * Whether a redirect plugin counts as loaded. Lets a site or a test say so * when the plugin loads late or under another name. */ apply_filters( 'strata_redirect_plugin_loaded', self::detected( $adapter_id ), $adapter_id ); -
/** * Filters whether the resize is offered for an oversized image. Pro answers * from the size and type the scan recorded and its own settings, so a screen * never shows a fix that would only refuse (an image that is heavy but not * wide while no compression is set, a type it leaves alone). */ apply_filters( 'strata_resize_offered', true, $e ); -
/** * Fires after a scan and every row tied to it were deleted. */ do_action( 'strata_scan_deleted', $id ); -
/** * Fires when a scan is failed by the engine. @param int $scan_id Scan. */ do_action( 'strata_scan_failed', $scan_id ); -
/** * Fires when a scan is paused. @param int $scan_id Scan. */ do_action( 'strata_scan_paused', $scan_id ); -
/** * Fires when a paused or stalled scan is resumed. @param int $scan_id Scan. */ do_action( 'strata_scan_resumed', $scan_id ); -
/** * Fires when a scan has been created and queued. */ do_action( 'strata_scan_started', $id ); -
/** * Filters how many days the site keeps trashed media. Return 0 to stop Strata * trashing media, for example when a cleanup job deletes the trash sooner than * WordPress does. The filter can only lower the days: it can never turn a site * whose trash is off into one that trashes. */ apply_filters( 'strata_trash_days', $days ); -
/** * Names of the active page builders whose pages Strata cannot read. Add a name * to hold back the trash on a site that runs another such builder. */ apply_filters( 'strata_unread_builders', array_values( array_unique( $names ) ) ); -
/** * Whether Strata looks at the live page after a fix. */ apply_filters( 'strata_verify_fixes', true ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( 'action_scheduler_after_process_queue' ); -
do_action( 'action_scheduler_before_process_queue' ); -
do_action( 'action_scheduler_bulk_cancel_actions', $action_ids ); -
do_action( 'action_scheduler_canceled_action', $action_id ); -
do_action( 'action_scheduler_deleted_action', $action_id ); -
do_action( 'action_scheduler_failed_fetch_action', $action_id, $exception ); -
action_scheduler_list_table_column_args
filter Used by 120 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_list_table_column_args', '', $row ); -
action_scheduler_maximum_execution_time
filter Used by 120 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_maximum_execution_time', $time_limit ); -
do_action( 'action_scheduler_stored_action', $action_id ); -
do_action( 'action_scheduler/migrated_action', $source_action_id, $destination_action_id, $this->source, $this->destination ); -
apply_filters( 'action_scheduler_admin_notice_html', $action_message_html, $action, $notification ); -
apply_filters( 'action_scheduler_admin_view_class', 'ActionScheduler_AdminView' ); -
do_action( 'action_scheduler_after_execute', $action_id, $action, $context ); -
action_scheduler_allow_async_request_runner
filter Used by 121 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_allow_async_request_runner', $allow ); -
action_scheduler_async_request_sleep_seconds
filter Used by 121 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_async_request_sleep_seconds', 5, $this ); -
do_action( 'action_scheduler_before_execute', $action_id, $context ); -
do_action( 'action_scheduler_begin_execute', $action_id, $context ); -
action_scheduler_canceled_corrupted_action
action Used by 31 plugins β Copy link Customise this hookdo_action( 'action_scheduler_canceled_corrupted_action', $action_id ); -
apply_filters( 'action_scheduler_check_pastdue_actions', current_user_can( 'manage_options' ) ); -
action_scheduler_enable_recreate_data_store
filter Used by 124 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_enable_recreate_data_store', true ); -
do_action( 'action_scheduler_execution_ignored', $action_id, $context ); -
do_action( 'action_scheduler_failed_action', $action_id, $timeout ); -
action_scheduler_failed_to_schedule_next_instance
action Used by 120 plugins β Copy link Customise this hookdo_action( 'action_scheduler_failed_to_schedule_next_instance', $action_id, $e, $action ); -
apply_filters( 'action_scheduler_failure_period', $time_limit ); -
action_scheduler_load_deprecated_functions
filter Used by 120 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_load_deprecated_functions', true ); -
apply_filters( 'action_scheduler_lock_class', 'ActionScheduler_OptionLock' ); -
apply_filters( 'action_scheduler_lock_duration', self::$lock_duration, $lock_type ); -
apply_filters( 'action_scheduler_logger_class', 'ActionScheduler_wpCommentLogger' ); -
apply_filters( 'action_scheduler_maximum_args_length', 191 ); -
action_scheduler_maximum_execution_time_likely_to_be_exceeded
filter Used by 120 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_maximum_execution_time_likely_to_be_exceeded', $likely_to_be_exceeded, $this, $processed_actions, $execution_time, $max_execution_time ); -
apply_filters( 'action_scheduler_memory_exceeded', $memory_exceeded, $this ); -
apply_filters( 'action_scheduler_migrate_data_store', false ); -
action_scheduler_migration_dependencies_met
filter Used by 120 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_migration_dependencies_met', true ); -
apply_filters( 'action_scheduler_pastdue_actions_check', $check, $num_pastdue_actions, $threshold_seconds, $threshold_min ); -
action_scheduler_pastdue_actions_check_interval
filter Used by 99 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_pastdue_actions_check_interval', round( $threshold_seconds / 4 ), $threshold_seconds ); -
action_scheduler_pastdue_actions_check_pre
filter Used by 100 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_pastdue_actions_check_pre', null ); -
action_scheduler_pastdue_actions_extra_notices
action Used by 99 plugins β Copy link Customise this hookdo_action( 'action_scheduler_pastdue_actions_extra_notices', $query_args ); -
apply_filters( 'action_scheduler_pastdue_actions_min', 1 ); -
action_scheduler_pastdue_actions_seconds
filter Used by 104 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_pastdue_actions_seconds', DAY_IN_SECONDS ); -
apply_filters( 'action_scheduler_post_status_args', $args ); -
action_scheduler_post_status_failed_labels
filter Used by 120 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_post_status_failed_labels', $labels ); -
action_scheduler_post_status_running_labels
filter Used by 120 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_post_status_running_labels', $labels ); -
apply_filters( 'action_scheduler_post_type_args', $args ); -
do_action( 'action_scheduler_pre_theme_init' ); -
action_scheduler_queue_runner_batch_size
filter Used by 121 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_queue_runner_batch_size', 25 ); -
apply_filters( 'action_scheduler_queue_runner_class', 'ActionScheduler_QueueRunner' ); -
action_scheduler_queue_runner_concurrent_batches
filter Used by 122 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_queue_runner_concurrent_batches', 1 ); -
action_scheduler_queue_runner_time_limit
filter Used by 125 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_queue_runner_time_limit', $time_limit ); -
do_action( 'action_scheduler_reset_action', $action_id ); -
do_action( 'action_scheduler_run_queue', 'Async Request' ); -
apply_filters( 'action_scheduler_run_schedule', self::WP_CRON_SCHEDULE ); -
apply_filters( 'action_scheduler_store_class', self::DEFAULT_CLASS ); -
apply_filters( 'action_scheduler_stored_action_class', $action_class, $status, $hook, $args, $schedule, $group ); -
apply_filters( 'action_scheduler_taxonomy_args', $args ); -
apply_filters( 'action_scheduler_timeout_period', $time_limit ); -
do_action( 'action_scheduler_unexpected_shutdown', $this->action_id, $error ); -
action_scheduler_use_cpu_execution_time
filter Used by 122 plugins β Copy link Customise this hookapply_filters( 'action_scheduler_use_cpu_execution_time', defined( 'PANTHEON_ENVIRONMENT' ) ); -
do_action( 'action_scheduler/created_table', $updated_table, $table ); -
action_scheduler/migrate_action_dry_run
action Used by 120 plugins β Copy link Customise this hookdo_action( 'action_scheduler/migrate_action_dry_run', $source_action_id ); -
do_action( 'action_scheduler/migrate_action_failed', $source_action_id, $this->source, $this->destination ); -
action_scheduler/migrate_action_incomplete
action Used by 120 plugins β Copy link Customise this hookdo_action( 'action_scheduler/migrate_action_incomplete', $source_action_id, $destination_action_id, $this->source, $this->destination ); -
action_scheduler/migration_batch_complete
action Used by 120 plugins β Copy link Customise this hookdo_action( 'action_scheduler/migration_batch_complete', $action_ids ); -
apply_filters( 'action_scheduler/migration_batch_size', 250 ); -
action_scheduler/migration_batch_starting
action Used by 120 plugins β Copy link Customise this hookdo_action( 'action_scheduler/migration_batch_starting', $action_ids ); -
do_action( 'action_scheduler/migration_complete' ); -
apply_filters( 'action_scheduler/migration_config', $config ); -
apply_filters( 'action_scheduler/migration_interval', 0 ); -
do_action( 'action_scheduler/no_action_to_migrate', $source_action_id, $this->source, $this->destination ); -
do_action( 'action_scheduler/progress_tick', $this->total_ticks ); -
apply_filters( 'admin_memory_limit', $wp_max_limit ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'code_snippets/activate_snippet', $snippet ); -
do_action( 'code_snippets/deactivate_snippet', $id, $network ); -
do_action( 'code_snippets/update_snippet', $snippet, $table ); -
do_action( 'litespeed_purge_all' ); -
apply_filters( 'strata_fixers', $fixers, $c ); -
do_action( 'strata_fs_loaded' ); -
do_action( 'strata_page_crawled', $url, $r['body'], $ctx ); -
do_action( 'strata_scan_done', $scan_id ); -
apply_filters( 'strata_scanners', self::scanners( $c ), $c ); -
apply_filters( 'strata_settings_defaults', $defaults ); -
apply_filters( 'strata_settings_payload', $payload ); -
apply_filters( 'strata_settings_sanitize', $out, $values ); -
do_action( 'strata_settings_updated', $result, $old ); -
do_action( 'wpfc_clear_all_cache' ); -
do_action( 'wphb_clear_page_cache' ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) );
Generated from Strata Site Audit's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and weβll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the pluginβs own hooks.
- Code written against the pluginβs actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2β3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the pluginβs files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3β7 business days
Choose thisNot sure which fits? Describe what you need and weβll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: