Inactive Logout icon
Security

Inactive Logout hooks reference

  • By Deepen Bajracharya
  • v3.6.4
  • Updated

Inactive Logout 3.6.4 has 15 actions and 10 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 Inactive Logout fires an action
add_action( 'ina__addon_form_elements', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Inactive Logout is about to use
add_filter( 'ina_allow_multiple_sessions', function( $value, $user_id ) {
	// 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

  • core/ConcurrentLogin.php line 67
    /**
     * Filter to allow certain users to have concurrent sessions when necessary
     */
    apply_filters( 'ina_allow_multiple_sessions', true, $user_id );
  • core/ConcurrentLogin.php line 74
    /**
     * Filter to limit number of concurrent users
     */
    apply_filters( 'ina_limit_logins_by_count', $user_id );
  • core/Backend/Common.php line 19 · used in 2 places
    apply_filters( 'ina_free_get_custom_post_types', array( 'post', 'page' ) );
  • views/tabs/tpl-inactive-logout-basic.php line 210
    do_action( 'ina__addon_form_elements' );
  • views/tabs/tpl-inactive-logout-advanced.php line 113
    do_action( 'ina__addon_role_based_elements_table_body', $role, $ina_multiuser_setting );
  • views/tabs/tpl-inactive-logout-advanced.php line 77
    do_action( 'ina__addon_role_based_elements_table_head' );
  • views/tabs/tpl-inactive-logout-advanced.php line 120
    do_action( 'ina__after_advanced_form_elements' );
  • core/Base.php line 206
    apply_filters( 'ina__logout_message', '<p>' . esc_html__( 'You have been logged out because of inactivity.', 'inactive-logout' ) . '</p>' );
  • core/Helpers.php line 233
    apply_filters( 'ina_admin_get_message', self::$message );
  • core/Controllers/Admin/TabController.php line 37
    do_action( 'ina_after_settings_wrapper', $tab );
  • core/Controllers/Admin/StoreController.php line 115
    do_action( 'ina_after_update_adv_settings', $container_multi_user_arr );
  • core/Controllers/Admin/StoreController.php line 62
    do_action( 'ina_after_update_basic_settings' );
  • core/Backend/Menu.php line 71
    do_action( 'ina_before_settings_wrapper' );
  • core/Controllers/Admin/StoreController.php line 108
    do_action( 'ina_before_update_adv_settings', $container_multi_user_arr );
  • core/Controllers/Admin/StoreController.php line 23
    do_action( 'ina_before_update_basic_settings' );
  • core/Base.php line 283
    apply_filters( 'ina_change_login_exp_time', 86400 );
  • core/ConcurrentLogin.php line 97
    do_action( 'ina_currentSessionsLoggedOut', $user_id );
  • core/LogoutHandler.php line 47
    apply_filters( 'ina_logout_redirect_url', $redirect_to, $current_user );
  • core/Base.php line 230
    apply_filters( 'ina_logout_settings', $data['settings'] );
  • ina_notices

    action
    views/tpl-inactive-logout-settings.php line 4
    do_action( 'ina_notices' );
  • core/ConcurrentLogin.php line 93
    do_action( 'ina_otherSessionsLoggedOut', $user_id );
  • core/Base.php line 198
    apply_filters( 'ina_popup_modal_text', [ 'ok' => ! empty( $ina_popup_modal ) && ! empty( $ina_popup_modal['text_ok'] ) ? $ina_popup_modal['text_ok'] : __( 'Ok', 'inactive-logout' ), 'close' => ! empty( $ina_popup_modal ) && ! empty( $ina_popup_modal['text_close'] ) ? $ina_popup_modal['text_close'] : __( 'Close without Reloading', 'inactive-logout' ), 'login_wait' => __( 'Logging in. Please wait', 'inactive-logout' ), 'continue' => !... );
  • core/Compatibility.php line 14
    apply_filters( 'ina_removeWishListMemberRestrictions', true );
  • views/tpl-inactive-logout-settings.php line 56
    do_action( 'ina_settings_page_tabs_after' );
  • views/tpl-inactive-logout-settings.php line 51
    do_action( 'ina_settings_page_tabs_before' );

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