WordPress If user is logged in

<?php if(is_user_logged_in()) { ?> Do whatever you want here. <?php } ?>
Show content if you are logged this is handy if you need to work on live site, without the client seeing it.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.