get_currentuserinfo();
if ( $current_user->ID === <ID of user to isolate>) {
// user specific code
}
http://codex.wordpress.org/Function_Reference/get_currentuserinfo
That is a very general solution. There may be other/better solutions but you didn’t provide much information about what you are trying to accomplish.
Related Posts:
- Customizing Users in Admin Area
- How to remove admin menu pages inserted by plugins?
- Creating my own Admin Forms in a WordPress CMS?
- How to build custom WP admin with custom URLs
- Custom Dashboard Home Screen Options
- Change the Labels of Users to Customers in Admin
- How to create custom backend admin menu in different languages?
- POST 429 Error when trying to place more than 20 images into post at once
- Custom Admin Section
- Create users via PHP
- Organizing Code in your WordPress Theme's functions.php File?
- Admin Page Redirect
- How to use more than 256MB of memory in the admin?
- Can an admin check passwords of registered users?
- Making Custom Fields Standard in the Admin UI
- How to obtain the user ID of the current profile being edited in WP-Admin?
- What is the best way to customise admin files so they survive future upgrades?
- How to update the delete user confirmation form?
- Custom ReCaptcha Login
- How to make custom bulk actions work on the media/upload page?
- Removing fields from the Media Uploader/Gallery
- deleted users still show in count?
- Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
- Modify custom Users Manage page
- How to Save Different Usermeta Fields According to User Role?
- WordPress prompt checklist before publish?
- Redirect members to custom page upon logging in through WP admin
- How to display only logged in user’s post comments in comments area
- Adding an email column to a Custom Post Types Admin Screen?
- Add a page that appears in the backend admin that lists files to download? WP 3.3
- Set user loggin status?
- Adding “Interesting Tags” & “Ignored Tags” like StackOverflow.com in a WordPress Blog?
- How can I add data to a custom column in the Users section of the wordpress backend?
- Add custom column to Users admin panel with Types user custom fields?
- How do I change the default admin color scheme in MP6
- user-new.php less detailed after WP3.1; how to revert?
- Unique User Account Number + Displayed Via Shortcode
- Hide upload image fields for the different media upload popups
- How to customize admin posts based on the user who is logged in
- Last time a user logged in
- List User order by ID in Descending order (Backend)
- Updating Custom WordPress User Meta Field via REST API
- How to pass external variables to the wp_new_user_notification_email filter?
- How can I allow access to multiple users, using the same login, at the same time?
- Creating user relationships
- Extend Screen Options
- Admin Panel – Custom Menu Sub-Item LINK
- Adding all sub-pages to the menu manager
- Preserve custom URL parameter after saving post
- Adding custom styles to dropdown in editor
- Function to allow “Anyone can register”?
- Make custom user table column filterable
- how to add custom css and js on wordpress post editor directly without using .php file
- How to customize core admin pages within a theme?
- Allow non-admins to access the Customize theme page
- Add ‘Creator’ User Meta when adding user
- Follow me for WordPress blogs (multi-authors)
- How to change popular term checklist title when edit post?
- WordPress customizer Preview not loading
- How to get custom page template being edited in gutenberg editor
- Organizing the position of widgetized areas in the backend
- User can not login
- Allow guests to use WP Customizer but disable save button
- How to use default WP form elements to interact with custom DB table?
- Admin search post meta
- Users can only view their content from the front end
- List top 5 authors with most posts
- Multi-site User Sessions
- Extend WordPress Core Classes in OOP Theme?
- Problem with custom user meta field
- Data won’t save if metabox within conditional in admin. What am I missing?
- Custom Columns WordPress Admin
- Simplify the admin end
- Restrict Viewing of post on both front and backend?
- What is the best way to modify Admin Panel on WordPress?
- add custom content to appearance/widgets screen
- how to make a custom field readonly or disabled by user role?
- How to make wordpress use a non-wordpress users table?
- Stop Expansion of Top Level Menu in the WordPress Admin Sidebar
- How to create “custom page types” with different custom fields in them?
- theme customizer – can a single option pass multiple values?
- How to remove admin menu pages inserted by plugins and themes in the top admin bar?
- Customizing admin look and feel for just one particular type of user
- Usage of custom post types in a custom admin menu
- Personalized Gallery what are my options?
- how or where wordress collect unlogged user session
- Newly created user role not displaying on users screen
- Open login logo URL in new tab
- Change admin_title of a plugin using code snippet/functions
- Select input in metabox not updated
- No plugin populate user information in to form
- Can we hide a certain user in WP?
- Delete a column in edit.php generated with a plugin
- Add admin page for specific post status (for example)
- Invitation link to a site in multisite network does not work?
- How to show Term ID beside Name Category with wp_dropdown_categories()
- remove screenshot.png via dashboard
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- Adding more than one WordPress Gutenburg block type?
- Figuring out how to create “Option Pages” in WordPress admin