Is there a way to check if a user with a specific id or name is in Wordpress?
I think you need a function is_user_logged_in. Maybe try
is_user_logged_in
wp_set_current_user($id, $name = '')
To set the current user by id and then check if they are logged in using
is_user_logged_in()
http://codex.wordpress.org/Function_Reference/wp_set_current_user
http://codex.wordpress.org/Function_Reference/is_user_logged_in
jkeesh has a good solution, but may not provide live information. is_user_logged_in()- a conditional statement to perform actions.
, , :
, smiley.jpg
smiley.jpg
, "x " , , . - .
Source: https://habr.com/ru/post/1763345/More articles:System-wide TouchEvent on Android - androidHow to get user-defined background color in three20 TTTableViewController - objective-cconversion from 'std :: string' to the non-scalar type requested - c ++How to display HTML image image - javascriptHow can I use an alias inside a subquery? - sqlHow to stop will_paginate from getting each record from the database - ruby-on-rails-3passing while () to a variable from while () to php - arraysPHP time () function returns random time shift by hour - phpusing java program - javaUsing panels in chrome extensions - google-chromeAll Articles