WordPress If user is logged in

1
2
<?php if(is_user_logged_in()) { ?>
Do whatever you want here.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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.