• Hello,

    I’ve just recently started using this plugin and it’s really nice. I however want to know if it is possible to change the menu links in the settings when using loginout. This is because that I have a custom login page, so I want the user to be sent to this page when clicking login, but be logged out when clicking logout.

    I have basically done this already since it is an easy fix in the code, but it would be nice if it was available in the settings so it doesn’t break updates.

    This is the code now:
    $item->url = is_user_logged_in() ? wp_logout_url( $item_redirect[1] ) : wp_login_url( $item_redirect[0] );

    and I would like something like this (var1 and var2 could have default values as above):
    $item->url = is_user_logged_in() ? var1 : var2;

    Regards
    Marcus Windmark

    https://www.ads-software.com/extend/plugins/baw-login-logout-menu/

  • The topic ‘Change menu links’ is closed to new replies.