Support » Themes and Templates » Modify wp_loginout?

Modify wp_loginout?

Viewing 1 replies (of 1 total)
  • Use the conditional tag is_user_logged_in() (it’s found in wp-includes/pluggable.php) to check if a user is logged in or not. E.g.,

    if (is_user_logged_in()) {
     // Logout Link
    } else {
     // Log-in Link

    Just promise that these image links have alt attributes for those who use screenreaders and such, okay?

Viewing 1 replies (of 1 total)
  • The topic ‘Modify wp_loginout?’ is closed to new replies.