SHARE
TWEET

Untitled

a guest Jun 18th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ( is_user_logged_in() ) {
  2.     echo 'Welcome, registered user!';
  3. } else {
  4.     echo 'Welcome, visitor!';
  5. };
  6.      
  7. jQuery(document).ready(function(){
  8. if ( is_user_logged_in() ) {
  9.     document.getElementById("visitorstatus").innerHTML = "LOG OUT";
  10. } else {
  11.     document.getElementById("visitorstatus").innerHTML = "LOG IN";
  12. };
  13. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top