Adding if statement
I have format your code and break echo statement into parts and add if condition. you can take reference from below code. <?php if ( is_user_logged_in() ) { echo ‘<ul style=”padding: 0; margin: 0;”> <li class=”adminBar” style=”float: left; line-height: 60px; border-left: 1px solid #555555; border-right: 1px solid #555555;”><a href=”#” target=”_blank”><img src=”#” height=”40px” style=”padding-left: 15px; padding-right: … Read more