Easily change the text for “Log in” and “Log out”
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Easily change the text for “Log in” and “Log out”’ is closed to new replies.