Sometimes you need to hide or show some content for some users with a special role. I met this problem many time on freelance. So here is simple code for the default user roles such as editor and administrator. With you using of this code you can show different content for different user roles. Another […]
I met this problem many time on freelance. You need to hide or show some content for logged in users. This is very simple but very useful part of code. I just wanted to save this part of code not to forget this great is_user_logged_in() WordPress function. Have fun!