Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Check if a user is logged in?

In regards to Mirce’s solution, I would think a more global (and simpler) solution would be this if statement:

<?php if ( bb_is_user_logged_in() ) { ?>;
--PUT WHATEVER YOU WANT THEM TO SEE HERE--
<?php } ? >

This way you don’t need to find out WHO the user is (user_id), but simply whether or not they’re logged in.

I’m pretty new to this, though, so maybe Mirce knows something I don’t?

Skip to toolbar