if ( is_user_logged_in
Hi all
I´m here asking for a piece of code todo the following:
I´ve created a large flash banner inviting the visitors to create an account, ok?
What i´m trying to achieve is to not show the banner to the logged users.
After a dig on codex I´ve found:
Code:
<?php
if ( is_user_logged_in() ) {
echo 'Welcome, registered user!';
} else {
echo 'Welcome, visitor!';
};
?>
How to invert that logic to something like that:
Code:
<?php
if ( is_user_logged_in() ) {
NOTHING';
} else {
echo 'MYFLASH_BANNER_CODE';
};
?>
Thank in advance for any tip