Cybexsoft Shield 1.0.1 has 18 actions and 36 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 Cybexsoft Shield fires an action
add_action( 'cybex_shield_ip_list_edited', function( $arg1, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value Cybexsoft Shield is about to use
add_filter( 'cybex_shield_ip_allow_listed', function( $value, $ip ) {
// 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 whether an address is exempt as allow-listed. */ apply_filters( 'cybex_shield_ip_allow_listed', false, $ip ); -
/** * Fires after an address is added to, or updated on, a list. */ do_action( 'cybex_shield_ip_list_edited', 'added', array( 'ip' => $ip, 'list' => $type, 'label' => $label, 'expires' => $expires, ) ); -
/** * This action is documented in includes/class-cybex-shield-cli.php */ do_action( 'cybex_shield_ip_unblocked', $ip ); -
/** * Fires after a settings group has been saved. */ do_action( 'cybex_shield_settings_updated', $group, $current ); -
/** * Filter which module events each activity category holds. */ apply_filters( 'cybex_shield_activity_categories', $pairs ); -
/** * Filter the sentence the activity log shows for one event. */ apply_filters( 'cybex_shield_activity_describe', $text, $row ); -
/** * Filter the WordPress options whose changes the activity log records. */ apply_filters( 'cybex_shield_activity_watched_options', $options ); -
/** * Filter whether a change to a settings group may be stored at all. */ apply_filters( 'cybex_shield_allow_settings_change', true, $group, self::group( $group ), $current ); -
/** * Apply staged list edits. The module owning a list returns true once it has * handled them, or a WP_Error to refuse the save. Runs before settings are * written, so a refused edit leaves the settings alone too. */ apply_filters( 'cybex_shield_apply_ops', null, $ops ); -
/** * Short-circuit the blocked page, e.g. to serve a theme's own. */ apply_filters( 'cybex_shield_blocked_page', false, $why, $row ); -
/** * Filter the capability required to manage Shield. */ apply_filters( 'cybex_shield_capability', 'manage_options' ); -
/** * Fires after the core `wp shield` commands are registered. */ do_action( 'cybex_shield_cli_register' ); -
/** * Filter the cron hooks cleared on deactivation and uninstall. Modules that * schedule their own work append to this. */ apply_filters( 'cybex_shield_cron_hooks', array( Cybex_Shield_Logger::MAINTENANCE_HOOK, 'cybex_shield_license_check' ) ); -
/** * Filter an email before it is sent. Change any part, or return false to stop * it. */ apply_filters( 'cybex_shield_email', $message, $template, $to ); -
/** * Fires after an event is recorded — the hook alerting and Pro's * integrations listen on. */ do_action( 'cybex_shield_event_logged', $row ); -
/** * Filter whether this login error should be flattened to the generic one. */ apply_filters( 'cybex_shield_hide_login_error', true, $error ); -
/** * Fires after a site has been set up, for anything that seeds data of its own. * Only heard when the plugin was already running — see above. */ do_action( 'cybex_shield_installed' ); -
/** * Fires after an address is added to the allow list. */ do_action( 'cybex_shield_ip_allowed', $ip ); -
/** * Filter the resolved autonomous system for an IP. */ apply_filters( 'cybex_shield_ip_asn', array( 'number' => 0, 'org' => '', ), $ip ); -
/** * Filter the resolved city name for an IP. */ apply_filters( 'cybex_shield_ip_city', '', $ip ); -
/** * Filter the resolved country code for an IP. */ apply_filters( 'cybex_shield_ip_country', '', $ip ); -
/** * Filter the id of the geolocation source available to this site. */ apply_filters( 'cybex_shield_ip_country_source', '' ); -
/** * Fires after the block or allow list has changed. Pro's firewall copies the * allow list into the file it reads before WordPress loads, and has to hear * about every change to keep it current. */ do_action( 'cybex_shield_ip_lists_changed' ); -
/** * Fires when an IP crosses the failed-attempt threshold. */ do_action( 'cybex_shield_ip_locked_out', $ip, $username, $minutes ); -
/** * Filter the server variable read for each IP source. */ apply_filters( 'cybex_shield_ip_source_headers', $headers ); -
/** * Filter whether this request is for the login area. The custom login URL * answers for its own slug, which is otherwise an ordinary path. */ apply_filters( 'cybex_shield_is_login_area', $is_login_area ); -
/** * Filter the effective Pro state. */ apply_filters( 'cybex_shield_is_pro', $is_pro ); -
/** * Fires after a licence is successfully activated. */ do_action( 'cybex_shield_license_activated', $response ); -
/** * Filter the licence API base URL (without /verify or /deactivate). */ apply_filters( 'cybex_shield_license_api_url', $endpoint ); -
/** * Fires after a licence has been removed from the site. */ do_action( 'cybex_shield_license_deactivated' ); -
/** * Fires after the plugin has fully booted. */ do_action( 'cybex_shield_loaded', $this ); -
/** * Filter event retention in days. */ apply_filters( 'cybex_shield_log_retention_days', $days ); -
/** * Filter the primitive capabilities a Shield meta capability needs. */ apply_filters( 'cybex_shield_map_cap', array( $this->capability() ), substr( $cap, 13 ), (int) $user_id ); -
/** * Filter the notification centre's items. */ apply_filters( 'cybex_shield_notifications', $items ); -
/** * Filter the checks the security score is built from. */ apply_filters( 'cybex_shield_overview_checks', $checks ); -
/** * Filter the overview's stat cards. Pro swaps in malware findings. */ apply_filters( 'cybex_shield_overview_stats', $stats ); -
/** * Filter the certificate check. Return an array shaped like the result to skip * the handshake — for tests, and for hosts that can only reach themselves * through a different address. */ apply_filters( 'cybex_shield_pre_certificate', null, $host ); -
/** * Short-circuit the licence API call. */ apply_filters( 'cybex_shield_pre_license_request', null, $action, $args ); -
/** * Filter a log row before it is written. Return false to skip logging. */ apply_filters( 'cybex_shield_pre_log_event', $row ); -
/** * Filter a settings group immediately before it is stored. */ apply_filters( 'cybex_shield_pre_update_settings', $current, $group ); -
/** * Fires at the end of the Security section of a user's profile. The Pro add-on * adds two-factor enrolment here. */ do_action( 'cybex_shield_profile_security', $user ); -
/** * Filter the wp-admin paths reachable without logging in. */ apply_filters( 'cybex_shield_public_admin_paths', $public, $path ); -
/** * Fires once free modules are registered — the hook Pro uses to add its own. */ do_action( 'cybex_shield_register_modules', $this->modules, $this ); -
/** * Filter the REST namespaces left open to anonymous visitors. */ apply_filters( 'cybex_shield_rest_open', self::REST_OPEN ); -
/** * Fires after a file scan completes. */ do_action( 'cybex_shield_scan_finished', $last ); -
/** * Filter the value of one security header. Return '' to not send it. */ apply_filters( 'cybex_shield_security_header', $spec[1], $name ); -
/** * Filter the settings schema. */ apply_filters( 'cybex_shield_settings_schema', self::core_schema() ); -
/** * Render a setup step contributed by a module or the Pro add-on. */ do_action( "cybex_shield_setup_render_{$current}", $admin ); -
/** * Fires when a setup step is completed, for steps that do something beyond * saving settings. */ do_action( 'cybex_shield_setup_step_done', $step ); -
/** * Filter whether the CF-IPCountry header is trusted. */ apply_filters( 'cybex_shield_trust_country_header', $trust ); -
/** * Fires while a site's data is being removed, for modules that store something * outside the tables and option groups above. */ do_action( 'cybex_shield_uninstall_site' ); -
/** * Filter to refuse a settings group before anything is stored. */ apply_filters( 'cybex_shield_validate_settings', '', $group, $values, $clean ); -
/** * Filter where wp-config.php is, for layouts WordPress's own two places do not * cover. Return '' to keep Shield from editing it. */ apply_filters( 'cybex_shield_wpconfig_path', null ); -
apply_filters( 'cybex_shield_setup_steps', $steps );
Generated from Cybexsoft Shield'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: