INI Protector 1.11.0 has 9 actions and 10 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 INI Protector fires an action
add_action( 'login_footer', function() {
// Your code runs here.
}, 10, 1 );
// Change a value INI Protector is about to use
add_filter( 'secwp_2fa_issuer', 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
-
/** * Filter the issuer shown in the authenticator app. */ apply_filters( 'secwp_2fa_issuer', (string) $host ); -
/** * Let other code (e.g. the connector, a family plugin) exempt an IP. Return * true to exempt. */ apply_filters( 'secwp_autoblock_is_exempt', false, $ip ); -
/** * Fires when an integrity change set is dispatched off-server. */ do_action( 'secwp_integrity_alert', $report, $changes, $result ); -
/** * Filter directory basenames skipped anywhere in the tree. */ apply_filters( 'secwp_integrity_exclude_dirnames', array( 'node_modules', '.git', '.svn', '.hg', 'bower_components' ) ); -
/** * Filter the path prefixes (relative to ABSPATH) that are never hashed. */ apply_filters( 'secwp_integrity_exclude_paths', $defaults ); -
/** * Filter individual absolute file paths watched outside the roots. */ apply_filters( 'secwp_integrity_extra_files', $out ); -
/** * Filter the directory roots walked by the integrity scan. */ apply_filters( 'secwp_integrity_roots', $roots ); -
/** * Fires after every integrity scan, with the full report. */ do_action( 'secwp_integrity_scanned', $report ); -
/** * Local override for the always-exempt REST namespaces. Prefer the connector's * `iniwp_family_rest_namespaces` filter for family plugins; this one is for * site-level one-offs or when the connector is absent. */ apply_filters( 'secwp_rest_always_exempt', $list ); -
/** * Filter one security header's value before it is sent. Return '' to skip it, * for example when the web server or CDN already adds it (PHP cannot see * those). */ apply_filters( 'secwp_security_header', $value, $name ); -
do_action( 'secwp_platform_event', '2fa_app_passwords_revoked', sprintf( 'Revoked %d application password(s) on two-factor enrolment', count( $existing ) ), array( 'user_id' => $user_id, 'count' => count( $existing ) ) ); -
do_action( 'secwp_2fa_disabled', $user_id ); -
do_action( 'secwp_2fa_enabled', $user_id ); -
do_action( 'secwp_2fa_recovery_used', $user_id, count( $hashes ) ); -
do_action( 'secwp_asset_salt_rotated', $entry ); -
apply_filters( 'secwp_autoblock_bot_domains', array( '.googlebot.com', '.google.com', '.search.msn.com', '.crawl.yahoo.net', '.applebot.apple.com', '.duckduckgo.com' ) ); -
do_action( 'wp_login', $user->user_login, $user ); -
apply_filters( 'xmlrpc_enabled', true );
Generated from INI Protector'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: