I am not sure exactly what you are asking for, but, if you want to target a specific user ID, just do something like:
// set special user id
$special_user_id = 5;
$current_user_id = get_current_user_id();
if ( $special_user_id == $current_user_id ){
echo 'special user is online';
}
You get the idea.
Related Posts:
- How to programatically change username (user_login)?
- How to restrict access to uploaded files?
- Allowing users to edit only their page and nobody else’s
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- Hide Admin Menu for Specific User ID who has administrator Role
- Allowing an email as the username?
- Check if specific username is logged in
- Post list based on the user that is logged in
- Basic auth WordPress REST API dilemma
- Copy a user from one WordPress site to another
- Front end user meta options for users
- How to customize wp_signon()
- Can I create users that have access to *some* other users posts instead of all other users posts?
- Set default page for user account in admin
- Share user table from WP with Drupal
- Log all users out of all locations after 24 hours
- Hide everything on site for visitors except specific page IDs
- Managing Users and Creating Groups [closed]
- Upgrade Nightmare – No Posts, Permissions Issues and Can’t Create a new post
- How to disable a specific page for a specific user
- Allow user access to Dashboard only!
- Restrict access of admin uploads to certain logged-in users?
- wordpress user roles are not working
- Displaying different in-page content to cliente/admin
- Problem with automatic role change through cron job
- Reset Password policy
- How can I allow an User to publish only 5 posts per month?
- Where are $current_user->allcaps set?
- How do you manage your pages or functions that require logged-in users?
- Allow admins to login as other users
- Can I Create a Second Admin Level User Role?
- Delete a user from frontend
- Unique password to access a section site
- One Click Access To Users Account In WordPress?
- Using my own user table
- WordPress user role with create user capability?
- Update user role for expired membership
- How to use url formatter with integer
- Custom User Role: Can Edit Own Page, Cannot Create New
- WordPress install checking permissions of user id 0
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- Allowing users to edit only their page and nobody else’s
- How to bulk change user role to “No role for this site”
- Restrict Access to the User Profile
- post acces for guests / unregistered users only
- Username has been exposed
- view and update form only for registered users
- Control Category of each user can post
- Limit user access to installing/configuring a plugin?
- determine active user browser at the same time
- MySQL query to list users who never signed in
- Wordpres password as plain text in email
- WordPress password as plain text in email
- (How) does WordPress protect direct access of user data?
- How to remove/limit Editor accounts privileges, to prevent them from deleting media and pages created by Admin
- get_user_meta() doesn’t include user email?
- Different back-end language for different users?
- How to change WordPress user ID?
- How to assign an additional/extra/second user-role to multiple users (of a specific user-role)
- Can I hook into the invite user process to verify their email address is from a certain domain?
- Is there any way to access Ultimate Member’s custom fields?
- New user notification doesn’t include activation link
- Add custom fields to the user profile
- Undeleting a deleted user
- Is it possible to get the currently logged in admin’s IP?
- Sort users by userID by default on users.php
- Changing a username
- Are User Levels Still Currently Used?
- Delete users from multisite after they have not logged in for a set amount of time?
- Where is the information about the authors for articles stored?
- Find user by nicename and open profile
- Using Cloudflare caching on wordpress with front-end user logins
- Redirect user after successful email change
- Replace Gravatar with UserPhoto in All Users Coulmn view
- Calling User Nickname
- How redirect after registration?
- create new users in db starting at what ID?
- About WordPress capabilities [closed]
- No more administrator roles / permissions after WordPress upgrade
- How to display text if profile fields are not filled?
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- Load user by specific role
- Change user slug in Buddypress
- Creating a user from a different website
- Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?
- Add number of members to “Right Now” dashboard widget
- add class to element if user is not logged in [closed]
- Can you Recover a WordPress User from a Backup
- wp-admin/users.php Add a column with last name
- How do I delete a wordpress user from giant database?
- Update user counts in admin interface
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- How to get the username for a custom link
- How To Find The ID Of All Registered Users?
- How to order posts by the user_login that corresponds to a meta_value (which is a user id)?
- How to get only 1 role from user
- hide woo commerce dashboard status and reports from woo commerce from specific users but display to other users
- How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount
- Sorting Users page admin column with ACF field
- Can we get user profile page using user_id in the URL?