CodeHQ

Posts Tagged ‘Logged out’

|

If user is logged in | WordPress

Tuesday, June 28th, 2016

Use to show content if a user is logged in.

<?php if ( is_user_logged_in() ) { ?>
  .....Content here......
<?php }  ?>

Use ! is_user_logged_in() if you want to show if NOT logged in.

Tags: , , , ,
Posted in PHP, WordPress | No Comments »