WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] edit display text wp_loginout (3 posts)

  1. jdarby
    Member
    Posted 7 years ago #

    if i go into template-functions-general.php and edit the following section:

    function wp_loginout() {
    if ( ! is_user_logged_in() )
    $link = '<a href="' . get_settings('siteurl') . '/wp-login.php">' . __('Login/Register') . '</a>';

    whenever i call <?php wp_loginout() shouldn't it display as "Login/Register" or am i doing something totally wrong/editing the wrong part?

  2. whooami
    Member
    Posted 7 years ago #

    if you are _not_ logged in, yes.

  3. jdarby
    Member
    Posted 7 years ago #

    hmm, ill have to start choppin some code up then. the default for that line was if ( ! is_userLogged_in() ), i guess ill have to change that and see what it does. i also thought it seemed to be backwards, thanks for confirming! ill give it a shot today

Topic Closed

This topic has been closed to new replies.

About this Topic