1 2 3 4 5 6 7 8
<?php if ( is_user_logged_in() ) { ?> <!-- html here --> <?php } ?> <?php if ( !is_user_logged_in() ) { ?> <!-- html here --> <?php } ?>
You can clone a snippet to your computer for local editing. Learn more.