Login Logout Menu icon
Content & Editing

Login Logout Menu hooks reference

  • By Adnan
  • v1.5.2
  • Updated

Login Logout Menu 1.5.2 has 0 actions and 11 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
// Change a value Login Logout Menu is about to use
add_filter( 'before_login_logout_menu_items', function( $post_title ) {
	// Change $post_title here.
	return $post_title;
}, 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

  • login-logout-menu.php line 315
    /**
     * Filter to manipulate the menu item object. Possible outcomes 'log-in',
     * 'log-out', 'log-in-log-out', 'register', 'profile', 'user' for 1st
     * parameter.
     */
    apply_filters( 'before_login_logout_menu_items', $post_title );
  • login-logout-menu.php line 447
    /**
     * Filter to modify the arguments of the get_avatar_url.
     */
    apply_filters( 'login_logout_menu_avatar_args', array( 'size' => '48' ) );
  • classes/shortcodes.php line 242 · used in 2 places
    apply_filters( 'login_logout_menu_avatar', Login_Logout_Menu::login_logout_menu_avatar( $args['username'], array( 'class' => 'login-logout-menu-avatar' ) ) );
  • login-logout-menu.php line 358 · used in 2 places
    apply_filters( 'login_logout_menu_login', wp_login_url( $item_redirect[0] ) );
  • login-logout-menu.php line 355 · used in 2 places
    apply_filters( 'login_logout_menu_logout', wp_logout_url( $item_redirect[1] ) );
  • classes/shortcodes.php line 270 · used in 2 places
    apply_filters( 'login_logout_menu_profile', Login_Logout_Menu::login_logout_menu_profile_link() );
  • classes/shortcodes.php line 228 · used in 2 places
    apply_filters( 'login_logout_menu_username', $current_user->display_name );
  • classes/shortcodes.php line 233 · used in 2 places
    apply_filters( 'login_logout_menu_username_url', Login_Logout_Menu::login_logout_menu_profile_link() );
  • login-logout-menu.php line 464
    apply_filters( 'login_logout_menu_avatar_attrs', $attrs );
  • login-logout-menu.php line 451
    apply_filters( 'login_logout_menu_avatar_html', $avatar . $username, $avatar, $username, get_avatar_url( $user_id, $args ) );
  • login-logout-menu.php line 384
    apply_filters( 'login_logout_menu_register', wp_registration_url() );

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