• luke-janicke

    (@luke-janicke)


    I copied the wp_loginout() function from general-template.php, put it in functions.php and modified it as follows.

    functions.php

    <?php

    function wp_loginout_mod() {
    if ( ! is_user_logged_in() )
    $link = '' . __('LOGIN') . '';
    else
    $link = '' . __('LOGOUT') . '';

    echo apply_filters('loginout', $link);
    }

    ?>

Viewing 1 replies (of 1 total)
  • Thread Starter luke-janicke

    (@luke-janicke)

    BTW…

    I call this function in footer.php as follows:

    <?php wp_loginout_mod(); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Easily change the text for “Log in” and “Log out”’ is closed to new replies.