Polanger Admin Suite 1.6.4 has 17 actions and 50 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 Polanger Admin Suite fires an action
add_action( 'pdt_2fa_render_method_authenticator', function( $current_user_id, $is_readonly ) {
// Your code runs here.
}, 10, 2 );
// Change a value Polanger Admin Suite is about to use
add_filter( 'polanger_effective_settings', function( $merged, $arg2, $arg3, $arg4 ) {
// Change $merged here.
return $merged;
}, 10, 4 );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
-
/** * Allow other addons (e.g. Multisite Control) to override comment security * settings. */ apply_filters( 'polanger_effective_settings', $merged, self::OPTION_KEY, $this->get_defaults(), 'comment-security' ); -
/** * Render authenticator setup UI when authenticator method is selected. * Rendered outside the main form to avoid nested form issues. */ do_action( 'pdt_2fa_render_method_authenticator', $current_user_id, $is_readonly ); -
/** * Filter the redirect URL for silent drops. */ apply_filters( 'pdt_comment_security_drop_redirect', add_query_arg( 'pdt_cs_blocked', '1', $post_url ), $context ); -
/** * Allow themes / addons to fully own the drop response. */ apply_filters( 'pdt_comment_security_drop_response', null, $context ); -
/** * Fires after the Comment Security engine outputs its protection fields. */ do_action( 'pdt_comment_security_extra_fields', $this->resolve_render_post_id() ); -
/** * Filter the flood-control signature for a request. */ apply_filters( 'pdt_comment_security_flood_signature', $signature, $ip, $comment ); -
/** * Filter the list of reason codes that bypass behavior scoring and go straight * to the configured silent_mode action. */ apply_filters( 'pdt_comment_security_hard_block_reasons', $defaults ); -
/** * Filter the honeypot field markup. */ apply_filters( 'pdt_comment_security_honeypot_markup', $markup, $field_name ); -
/** * Filter private operational comment types exempt from the public policy. */ apply_filters( 'pdt_comment_security_internal_comment_types', $types ); -
/** * Filter to let addons hard-block a comment before the engine's own checks * run. */ apply_filters( 'pdt_comment_security_preprocess_extra', false, $comment ); -
/** * Require the hidden form marker for honeypot/timing protections. */ apply_filters( 'pdt_comment_security_require_form_marker', true, $settings, $comment ); -
/** * Filter the minimum age (in seconds) returned for a freshly-issued token. */ apply_filters( 'pdt_comment_security_timing_grace', $this->timing_grace ); -
/** * Skip transient-based one-time-use enforcement for timing tokens. */ apply_filters( 'pdt_comment_security_timing_stateless', false ); -
/** * Trusted reverse proxies (IPs) for the Comment Security addon. */ apply_filters( 'pdt_comment_security_trusted_proxies', array() ); -
/** * Filter whether WooCommerce review support is available. */ apply_filters( 'pdt_comment_security_woocommerce_active', $active ); -
/** * Filter post types that may use frontend content visibility rules. */ apply_filters( 'pdt_content_visibility_post_types', $supported ); -
/** * Keep an inline fallback by default so migrated sites, strict hosts, mixed * scheme setups, or upload/CDN rules cannot silently disable the theme. */ apply_filters( 'pdt_design_inline_fallback_enabled', true, $settings, $meta ); -
/** * Filter compatibility REST write prefixes that bypass anonymous write * blocking. */ apply_filters( 'pdt_firewall_compat_rest_write_allowlist', $prefixes ); -
/** * Filter the minimal early country-policy response without loading a theme. */ apply_filters( 'pdt_firewall_country_block_title', $title, $locale ); -
/** * Fires after the complete Firewall settings payload is persisted. */ do_action( 'pdt_firewall_settings_saved', $settings, $previous ); -
/** * Fires for addon-registered Settings tabs. */ do_action( 'pdt_settings_render_tab', $current_tab, $is_readonly ); -
/** * Fires for a specific addon-registered Settings tab. */ do_action( "pdt_settings_render_tab_{$current_tab}", $is_readonly ); -
/** * Filter the icon class for a given tab. */ apply_filters( 'pdt_settings_tab_icons', array( 'general' => 'dashicons-admin-generic', 'security' => 'dashicons-shield', 'activity-log' => 'dashicons-list-view', 'content-visibility' => 'dashicons-visibility', 'miscellaneous' => 'dashicons-admin-tools', ) ); -
/** * Filter the list of Settings page tabs. */ apply_filters( 'pdt_settings_tabs', $tabs ); -
/** * Fires on Polanger admin pages before core assets are enqueued. */ do_action( 'polanger_admin_theme_assets', $current_page ); -
/** * Filter whether a user may manage Polanger features. */ apply_filters( 'polanger_current_user_can_manage', $can, $user_id ); -
/** * Fires when the Polanger extension API is ready. */ do_action( 'polanger_init', $pdt_extension_loader ); -
/** * Filter the resolved Polanger access level for a user. */ apply_filters( 'polanger_user_access_level', $level, $user_id ); -
apply_filters( 'pdt_2fa_allow_email_fallback', true ); -
apply_filters( 'pdt_2fa_pending_context', $pending_context, $user, $two_factor ); -
apply_filters( 'pdt_2fa_available_methods', array( 'email' ) ); -
apply_filters( 'pdt_2fa_back_to_login_url', $url, $pending_context, $args ); -
apply_filters( 'pdt_2fa_challenge_url', $url, $pending_context, $args ); -
apply_filters( 'pdt_2fa_factor_providers', array( 'email' ) ); -
apply_filters( 'pdt_2fa_fail_open_on_mail_error', false, $user ); -
apply_filters( 'pdt_2fa_is_trusted_device', null, $user->ID, $this ); -
apply_filters( 'pdt_2fa_pre_authenticate', null, $user, $username, $password, $this ); -
apply_filters( 'pdt_2fa_success_redirect_url', admin_url(), $pending_context, $user ); -
apply_filters( 'pdt_2fa_trusted_proxies', array() ); -
apply_filters( 'pdt_2fa_verify_submitted_factor', null, $pending, $code, $this ); -
apply_filters( 'pdt_active_addons', $active_addons ); -
apply_filters( 'pdt_activity_log_trusted_proxies', array() ); -
apply_filters( 'pdt_addon_availability', $availability, $addon_key, $addon ); -
do_action( 'pdt_comment_security_rate_storage_error' ); -
apply_filters( 'pdt_design_generated_css', $css, $tokens, $this->settings ); -
apply_filters( 'pdt_design_tokens_before_compile', $tokens, $this->settings ); -
apply_filters( 'pdt_firewall_country_block_message', $message, $locale ); -
do_action( 'pdt_log_activity', $event ); -
apply_filters( 'pdt_login_security_404_context', $context, $settings ); -
do_action( 'pdt_recaptcha_after_save' ); -
apply_filters( 'pdt_recaptcha_location_definitions', $locations, $location_keys ); -
apply_filters( 'pdt_recaptcha_location_keys', $locations ); -
apply_filters( 'pdt_recaptcha_locations', $locations, $location_keys ); -
apply_filters( 'pdt_register_addons', $addons ); -
apply_filters( 'polanger_allow_site_override', ! empty( $network_settings['allow_site_override'] ), $feature_key, $context ); -
do_action( 'polanger_network_settings_saved', $settings ); -
do_action( 'polanger_settings_saved', $overrides ); -
apply_filters( 'polanger_shield_demo_lock_unsafe_admin_pages', $pages ); -
apply_filters( 'polanger_shield_global_demo_unsafe_admin_pages', $pages ); -
apply_filters( 'polanger_shield_safe_mode_duration_minutes', self::DEFAULT_DURATION_MINUTES );
Generated from Polanger Admin Suite'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: