Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    There’s a widget that does that (called Meta). What kind of menu are you talking about?

    Thread Starter taylorishere

    (@taylorishere)

    I think I figured it out, with this code:

    function loginlogout_button() {
    
    if ( is_user_logged_in() ) {?>
        <div id="loginbutton"><a>" title="Logout">Logout</a></div><?php;
    } else {?>
        <div id="loginbutton"><a href="[USER DEFINED URL]" title="Login">Login</a></div><?php;
    };

    Hi,

    Can this insert to a manually insert button??????? Ex. If an user login button image should be “pay now” and if not button image should be “register”.

    Can this be done with above code?????????

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘A member dependent login button’ is closed to new replies.