Site Lockdown Security 9.2 has 3 actions and 37 filters, read directly from its source code on Nov 18, 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 Site Lockdown Security fires an action
add_action( 'litespeed_purge_all', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Site Lockdown Security is about to use
add_filter( 'wpfa_scan_results_transient_key', function( $value, $user_id ) {
// Change $value here.
return $value;
}, 10, 2 );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
-
/** * Filter: change the transient key used to store scan results. */ apply_filters( 'wpfa_scan_results_transient_key', 'wpfa_scan_results_' . $user_id, $user_id ); -
/** * Filters the number of days without an update before an item is treated as * abandoned. */ apply_filters( 'wpfa_abandoned_check_threshold_days', 730 ); -
/** * Disabled by default: heuristic MainWP update detection can be spoofed if it * is not tied to an authenticated bridge token or host-specific integration. */ apply_filters( 'wpfa_allow_unauthenticated_mainwp_update_autounlock', false ); -
/** * Allows site-specific database scan signatures to be added or adjusted. The * built-in Site Lockdown database signatures are now loaded from the protected * remote pattern endpoint instead of being stored in the plugin. */ apply_filters( 'wpfa_db_signatures', $remote ); -
/** * Domains that Redirect Monitor should silently ignore in the background. */ apply_filters( 'wpfa_redirect_monitor_background_excluded_domains', $domains ); -
/** * Allows the remote signature token to be rotated without editing plugin code. */ apply_filters( 'wpfa_remote_patterns_token', $token ); -
/** * Allows site owners or managed hosts to mirror the signature endpoint. The * URL should return JSON with raw, scan, database, and exclusions arrays. The * compiler that creates that JSON, including encode-patterns.php, remains * remote. */ apply_filters( 'wpfa_remote_patterns_url', $url ); -
apply_filters( 'wpfa_scan_meta_transient_key', 'wpfa_scan_meta_' . $meta_user_id, $meta_user_id ); -
apply_filters( 'wpfa_scan_results_scheduled_key', 'wpfa_scan_results_scheduled' ); -
apply_filters( 'wpfa_folder_lock_manifest_entries_per_batch', 100000 ); -
apply_filters( 'wpfa_folder_lock_programmatic_max_batches', 0 ); -
apply_filters( 'wpfa_login_security_should_block_bot_submission', ! empty( $assessment['block'] ), 'public', $assessment, $settings ); -
apply_filters( 'wpfa_scanner_skip_known_false_positive_path', true, $relative_path, $prefix ); -
apply_filters( 'all_plugins', $plugins ); -
apply_filters( 'folder_auditor_bulk_delete_uploads_php_skip', array() ); -
apply_filters( 'folder_auditor_plugin_skip_slugs', array( 'support-wpfi', 'mainwp-child', 'mainwp-child-reports', 'folder-auditor', 'site-lockdown-security', 'site-lockdown', 'baseline' ) ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'wp_login', $user->user_login, $user ); -
do_action( 'wpfa_firewall_emergency_shield_purge_cache' ); -
apply_filters( 'wpfa_folder_lock_ajax_batch_ops', $default_ops, $is_programmatic ); -
apply_filters( 'wpfa_folder_lock_ajax_batch_seconds', 5.0 ); -
apply_filters( 'wpfa_folder_lock_inline_directory_entries', 96 ); -
apply_filters( 'wpfa_folder_lock_programmatic_batch_seconds', 10.0 ); -
apply_filters( 'wpfa_folder_lock_realpath_cache_entries', 2048 ); -
apply_filters( 'wpfa_hard_excluded_paths', array_values( array_unique( $normalized ) ) ); -
apply_filters( 'wpfa_login_security_bot_shield_assessment', $assessment, $context, $settings ); -
apply_filters( 'wpfa_login_security_bot_token_max_age', 7 * DAY_IN_SECONDS, $context ); -
apply_filters( 'wpfa_login_security_bypass_bot_shield', false, $context, $settings ); -
apply_filters( 'wpfa_login_security_client_ip', $ip ); -
apply_filters( 'wpfa_login_security_max_log_rows', 250 ); -
apply_filters( 'wpfa_login_security_session_candidate_ttl', 30 * DAY_IN_SECONDS ); -
apply_filters( 'wpfa_passwordless_remember_login', false, $user ); -
apply_filters( 'wpfa_redirect_monitor_url_scan_limit', $limit ); -
apply_filters( 'wpfa_remote_patterns_cache_buster', true ); -
apply_filters( 'wpfa_remote_patterns_cache_ttl', 6 * HOUR_IN_SECONDS ); -
apply_filters( 'wpfa_remote_patterns_timeout', 8 ); -
apply_filters( 'wpfa_report_email_body', $body, $report_url ); -
apply_filters( 'wpfa_report_email_subject', $subj, $report_url ); -
apply_filters( 'wpfa_scanner_results', $matches, [], $opts ); -
apply_filters( 'wpfa_site_lock_auto_enable', false );
Generated from Site Lockdown Security'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: