Skip to main content
1 of 3
saeed shabani
  • 153
  • 1
  • 2
  • 12

show text If special user is logged in wordpress

I want to check if special user id is logged in WordPress. i know we have a function name is_user_logged_in() but we can't change the id of user logged in, in this function.

I need a function like this:

is_special_user_logged_in();

and check it like this:

if ( is_special_user_logged_in() ){ echo 'special user is online'; }

saeed shabani
  • 153
  • 1
  • 2
  • 12