Snippets

Dan Bochichio WordPress IF loggedin / loggedout

Created by Former user

File wp-loggedin-loggedout.php Added

  • Ignore whitespace
  • Hide word diff
+<?php if ( is_user_logged_in() ) { ?> 	
+<!-- html here -->
+<?php } ?> 
+
+
+<?php if ( !is_user_logged_in() ) { ?> 	
+<!-- html here -->
+<?php } ?> 
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.