Titan Anti-spam & Security icon
Security

Titan Anti-spam & Security hooks reference

  • By Themeisle
  • v7.5.6 New
  • Updated

Titan Anti-spam & Security 7.5.6 has 13 actions and 20 filters, read directly from its source code on Nov 17, 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.

functions.phpyour child theme
// Run your own code when Titan Anti-spam & Security fires an action
add_action( 'login_enqueue_scripts', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Titan Anti-spam & Security is about to use
add_filter( 'login_body_class', function( $classes, $action ) {
	// Change $classes here.
	return $classes;
}, 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

  • includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 150
    /**
     * Filters the login page body classes.
     */
    apply_filters( 'login_body_class', $classes, $action );
  • includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 88
    /**
     * Enqueue scripts and styles for the login page.
     */
    do_action( 'login_enqueue_scripts' );
  • login_errors

    filter
    includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 209
    /**
     * Filters the error messages displayed above the login form.
     */
    apply_filters( 'login_errors', $errors );
  • login_head

    action
    includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 95
    /**
     * Fires in the login page header after scripts are enqueued.
     */
    do_action( 'login_head' );
  • login_header

    action
    includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 161
    /**
     * Fires in the login page header after the body tag is opened.
     */
    do_action( 'login_header' );
  • includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 121
    /**
     * Filters the title attribute of the header logo above login form.
     */
    apply_filters( 'login_headertitle', $login_header_title );
  • includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 112
    /**
     * Filters link URL of the header logo above login form.
     */
    apply_filters( 'login_headerurl', $login_header_url );
  • login_message

    filter
    includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 177
    /**
     * Filters the message to display above the login form.
     */
    apply_filters( 'login_message', $message );
  • includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 219
    /**
     * Filters instructional messages displayed above the login form.
     */
    apply_filters( 'login_messages', $messages );
  • includes/tweaks/password-requirements/login-interstitial/functions-login-header.php line 39
    /**
     * Filters the error codes array for shaking the login form.
     */
    apply_filters( 'shake_error_codes', $shake_error_codes );
  • includes/tweaks/password-requirements/login-interstitial/class-login-interstitial.php line 53
    /**
     * Fires when the Login Interstitial framework is initialized.
     */
    do_action( 'titan_login_interstitial_init', $this );
  • includes/tweaks/password-requirements/login-interstitial/class-login-interstitial.php line 225
    /**
     * Fires when the login interstitial initializes the Same Browser API for async
     * actions.
     */
    do_action( 'titan_login_interstitial_initialize_same_browser', $session );
  • includes/tweaks/password-requirements/login-interstitial/class-login-interstitial.php line 905
    /**
     * Fires when a user is re-logged back in after submitting an interstitial.
     */
    do_action( 'titan_login_interstitial_logged_in', $user );
  • includes/tweaks/password-requirements/class-password-requirements-base.php line 107
    /**
     * Retrieve a human readable description as to why a password change has been
     * required for the current user.
     */
    apply_filters( "titan_password_change_requirement_description_for_{$reason}", $message, $user );
  • includes/tweaks/password-requirements/class-password-requirements-base.php line 25
    /**
     * Fires when password requirements should be registered.
     */
    do_action( 'titan_register_password_requirements' );
  • includes/antispam/classes/class-advanced-spam-filter.php line 122
    /**
     * Filters the recurring interval (in seconds) for Titan's spam batch cron
     * jobs.
     */
    apply_filters( 'titan_spam_cron_interval', 30 * MINUTE_IN_SECONDS );
  • includes/tweaks/password-requirements/class-password-requirements-base.php line 176
    /**
     * Fires when modules should validate a password according to their rules.
     */
    do_action( 'titan_validate_password', $error, $user, $new_password, $args );
  • admin/pages/class-dashboard.php line 122 · used in 4 places
    apply_filters( 'product_titan_license_key', 'free' );
  • admin/pages/class-dashboard.php line 123 · used in 4 places
    apply_filters( 'product_titan_license_status', false );
  • includes/tweaks/password-requirements/login-interstitial/class-login-interstitial.php line 934
    apply_filters( 'login_redirect', $redirect_to, $requested, $user );
  • includes/class-titan-security-plugin.php line 317
    apply_filters( "product_{WTITAN_PLUGIN_NAMESPACE}_license_key", '' );
  • includes/class-titan-security-plugin.php line 349
    apply_filters( 'product_titan_license_plan', 0 );
  • includes/class-titan-security-plugin.php line 332
    do_action( 'themeisle_internal_page', WTITAN_PLUGIN_SLUG, 'dashboard' );
  • includes/class-license.php line 147
    apply_filters( 'themeisle_sdk_license_process_titan', $key, $action );
  • includes/class-titan-security-plugin.php line 317
    apply_filters( 'themeisle_sdk_secret_masking', apply_filters( 'product_' . WTITAN_PLUGIN_NAMESPACE . '_license_key', '' ) );
  • includes/bruteforce/class-limit-login-attempts.php line 631
    apply_filters( 'titan_limit_login_blacklist_ip', false, $ip );
  • includes/bruteforce/class-limit-login-attempts.php line 642
    apply_filters( 'titan_limit_login_blacklist_usernames', false, $username );
  • includes/bruteforce/class-limit-login-attempts.php line 609
    apply_filters( 'titan_limit_login_whitelist_ip', false, $ip );
  • includes/bruteforce/class-limit-login-attempts.php line 620
    apply_filters( 'titan_limit_login_whitelist_usernames', false, $username );
  • includes/tweaks/password-requirements/login-interstitial/class-login-interstitial.php line 819
    do_action( 'titan_login_interstitial_async_action_confirmation_before_confirm', $session, $action );
  • includes/tweaks/password-requirements/class-password-requirements.php line 433
    do_action( 'titan_password_requirements_change_form', $user );
  • wp_login

    action
    includes/tweaks/password-requirements/login-interstitial/class-login-interstitial.php line 898
    do_action( 'wp_login', $user->user_login, $user );

Generated from Titan Anti-spam & Security's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: