WordPress.org

Ideas

is_user_logged_in() to accept $user_id

  1. Henry Wright
    Member

    12345

    is_user_logged_in() to accept a $user_id parameter and would return true if that particular user is currently logged in or false if that particular user isn't currently logged in.
    The function could be used on the author page (for example) to show if that particular author was currently online.

    Posted: 7 months ago #
  2. suspended
    Member

    henrywright, I can do mistake, but how I know, since version 4.0 in table {prefix}_usermeta generated new key session_tokens. It key is actually shows logged user or not. Use this key.

    Also is_user_logged_in is pluggable function. You can overwrite this function via own plugin.

    Posted: 7 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    2 Votes
  • Status

    This idea is under consideration

Tags