Loggedin icon
Social Media

Loggedin hooks reference

  • By Joel James
  • v3.4.1 New
  • Updated

Loggedin 3.4.1 has 15 actions and 15 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 Loggedin fires an action
add_action( 'loggedin_destroy_session', function( $ID, $token ) {
	// Your code runs here.
}, 10, 2 );

// Change a value Loggedin is about to use
add_filter( 'loggedin_addon_minimum_versions', 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

  • src/Cli/SessionsCommand.php line 377 · used in 2 places
    /**
     * Fires after a single session is destroyed.
     */
    do_action( 'loggedin_destroy_session', (int) $user->ID, $token );
  • src/Addons/OutdatedAddons.php line 96
    /**
     * Filter the first add-on versions built for the new settings screen.
     */
    apply_filters( 'loggedin_addon_minimum_versions', self::MINIMUM );
  • src/Addons/Catalog.php line 116
    /**
     * Filter the shaped addon catalogue before it goes over REST.
     */
    apply_filters( 'loggedin_addons_catalog', $items, $catalogue );
  • src/Admin/Assets.php line 238
    /**
     * Filter the localised script vars for the admin app.
     */
    apply_filters( 'loggedin_admin_script_vars', $vars );
  • src/Modules/AutoLogout/IdleGuard.php line 356
    /**
     * Fires just before an idle session is terminated.
     */
    do_action( 'loggedin_auto_logout_expired', $user->ID, $timeout );
  • src/Modules/AutoLogout/Settings.php line 303
    /**
     * Filter the resolved idle timeout for a user, in minutes.
     */
    apply_filters( 'loggedin_auto_logout_timeout', $minutes, $user );
  • src/Sessions/SessionGuard.php line 542
    /**
     * Filter to bypass the concurrent-session check for a user.
     */
    apply_filters( 'loggedin_bypass', $bypass, $user_id );
  • src/Cli/Commands.php line 93
    /**
     * Fires after the core `wp loggedin` commands are registered.
     */
    do_action( 'loggedin_cli_init' );
  • src/Sessions/SessionStore.php line 218
    /**
     * Fires after a user is signed out of every device.
     */
    do_action( 'loggedin_destroy_all_sessions', $user_id );
  • src/Sessions/SessionGuard.php line 466
    /**
     * Fires after the oldest session is destroyed for a user.
     */
    do_action( 'loggedin_destroy_oldest_session', $user_id );
  • src/Modules/Lockout/Displaced.php line 237
    /**
     * Filter the message shown to someone signed out by a newer login.
     */
    apply_filters( 'loggedin_displaced_message', $text );
  • src/Sessions/SessionGuard.php line 610
    /**
     * Filter the login-blocked error message.
     */
    apply_filters( 'loggedin_error_message', $message, $user );
  • loggedin_init

    action
    src/Plugin.php line 324
    /**
     * Fires once every service has been wired up.
     */
    do_action( 'loggedin_init', $this );
  • src/Sessions/SessionGuard.php line 341
    /**
     * Fires when a login is blocked by the concurrent-session limit.
     */
    do_action( 'loggedin_login_blocked', $user->ID );
  • src/Sessions/LogoutEpoch.php line 204
    /**
     * Fires after a site-wide logout has been triggered.
     */
    do_action( 'loggedin_logout_all_users', $epoch );
  • src/Modules/PasswordSignout/PasswordSignout.php line 145
    /**
     * Fires after a password change ended the user's other sessions.
     */
    do_action( 'loggedin_password_signout', $user_id );
  • src/Sessions/SessionGuard.php line 514
    /**
     * Filter the limit-reached result.
     */
    apply_filters( 'loggedin_reached_limit', $reached, $user_id, $count );
  • src/Addons/Addons.php line 280
    /**
     * Filter the list of registered addons.
     */
    apply_filters( 'loggedin_register_addon', array() );
  • src/Sessions/SessionStore.php line 273
    /**
     * Filter the device name shown for a session.
     */
    apply_filters( 'loggedin_session_device', $this->parse_device( $ua ), $ua );
  • src/Sessions/LogoutEpoch.php line 159
    /**
     * Fires after a session is invalidated by the logout epoch.
     */
    do_action( 'loggedin_session_invalidated', (int) $user_id, $this->store->verifier( $token ) );
  • src/Sessions/SessionGuard.php line 575
    /**
     * Fires before a new login ends a user's other sessions.
     */
    do_action( 'loggedin_sessions_displacing', $user_id, $verifiers );
  • src/Settings/Settings.php line 284
    /**
     * Filter the default settings payload.
     */
    apply_filters( 'loggedin_settings_defaults', array( 'maximum' => 1, 'logic' => 'allow', 'unlock' => true, 'exempt_admins' => true, 'password_signout' => true, 'message' => '', 'displaced_redirect' => '', ) );
  • src/Settings/Settings.php line 437
    /**
     * Filter the schema of each setting in `loggedin_settings`.
     */
    apply_filters( 'loggedin_settings_properties', $properties );
  • src/Admin/Assets.php line 331
    /**
     * Filter the settings pages, cards and fields add-ons declare.
     */
    apply_filters( 'loggedin_settings_schema', array( 'pages' => array(), 'cards' => array(), 'fields' => array(), ) );
  • src/Uninstaller.php line 135
    /**
     * Fires after Loggedin has removed its data on uninstall.
     */
    do_action( 'loggedin_uninstalled' );
  • src/Modules/Lockout/Unlock.php line 364
    /**
     * Filter the unlock email before it is sent.
     */
    apply_filters( 'loggedin_unlock_email', $email, $user );
  • src/Modules/Lockout/Unlock.php line 204
    /**
     * Fires after a blocked user is emailed a link to sign out their other
     * devices.
     */
    do_action( 'loggedin_unlock_requested', $user_id );
  • src/Modules/Lockout/Unlock.php line 233
    /**
     * Fires after a user signs out of every device from the unlock email.
     */
    do_action( 'loggedin_unlocked', $user_id );
  • src/Modules/UserSessions/UsersList.php line 367
    /**
     * Fires after an admin signs a user out of every device from the Users screen.
     */
    do_action( 'loggedin_users_list_sign_out', $user_id );
  • src/Settings/Settings.php line 199
    apply_filters( 'loggedin_logics', $logics );

Generated from Loggedin'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: