I'm wondering if that's possible and how : I would like to show a popup only to a certain group of users. I've looked into the plugin directory but didn't find anything that fits my needs. Can someone help ?
Thank you !
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
The way I'd approach this problem is to give a certain role to users you want to be shown the popup. ( If you're looking to show the popup to different users that are logged out of WordPress, that's out of scope for this StackExchange. )
I'd then use the
is_current_user_in_role() based on this answer by Rarst