Assuming you’re talking about the current user (as your code fragment shows), you’d call get_currentuserinfo()
again.
Related Posts:
- How do I add a field on the Users profile? For example, country, age etc
- user_login vs. user_nicename
- WordPress usermeta scaling for thousands of users
- Groups of capabilities: users with multiple roles?
- Is there a way to merge two users?
- How to restrict access to uploaded files?
- Execute a function when admin changes the user role
- Why are user address fields required [closed]
- Importing users? From another wordpress site
- How to discover and delete unused accounts?
- Remove all users from site except one using WP CLI
- security+best practices: root or www-data on a wordpress content folder?
- Show Biographical Info while creating new user
- How to enable the theme editor cap for an editor role?
- WordPress keeps asking for connection information in localhost
- importing users where password is provided as md5 + much metadata
- User File Upload Repository?
- How to get user ID during registration and add it to a custom table
- How do I properly format the user_role array?
- How to edit user_id on the comment edit screen
- Redirect after login based on user role (custom login page)
- get_users() ORDER BY Not Working
- My custom page template with is_user_logged_in() does not detect that I’m logged in
- Total Word Count For Posts And Comments By One Author
- Delete user from frontend
- Tagging users in WordPress
- Share user table from WP with Drupal
- How can I display show/hide elements when user is registered?
- How can I allow password reset based on logins containing the @ character?
- WordPress User getting added with id of 0
- Log all users out of all locations after 24 hours
- Register new user in the frontend
- Force logout ALL users at a certain time
- Show MD5 Password in user section
- RSS feed for a given user’s post?
- add_cap not working with Shop Manager role
- User Last Login Sort Column
- Bulk delete users from a csv list
- Get tags for current user
- Using user_status in conditional with get_users to return existing users
- How can i change the name order in the admin?
- WP_User_Query by meta_value with Number returns nothing
- How to add user from front end
- Rewrite Rules and Login Issue
- I am getting mysql_real_escape_string() function error while adding user?
- User profile updates password even if not filled (Theme my login) in Firefox? [closed]
- Preventing auto-filling of e-mail addresses on profile.php
- users and usermeta table
- Prevent subscribers to changing certain profile fields
- New user form rejected because “passwords don’t match”—but there’s only one password field
- Unable to change email address of admin on localhost
- How can I prevent certain custom roles from seeing other custom roles on the user list page?
- Creating User Profiles using author.php
- “the_author_meta(‘url’)” not working inside “href”
- REST API: wp_get_current_user not working on second call
- How to let the users edit their user names?
- How do I filter users based on email address?
- What’s the correct way to add capabilites to user roles?
- Web app vs CMS backend
- User roles not displaying
- How to count total words for posts published by one author?
- Should I setup frontend-only users as CPT or use a plug-in?
- How to expire user registration?
- Echo a list of all subscriber’s user IDs
- user login and its profile
- wp_delete_user – huge overhead in Buddypress?
- Delete all users with Editor role and their content mysql
- Send user auto generated password on different email
- Load Custom Field to User Profile as per User Role using Ajax
- Show posts who published after registration date
- How to hide “Change role to” dropdown on Users admin menu
- Get UserInfo from WordPress
- How to display a calendar with events depending on the user?
- How to show different pages for different users
- How can i display pagination in custom comment list?
- hide page menu from admin panel for specific users
- Single Sign On (SSO) between two WordPress websites
- Disabling user capability to edit_posts or delete_posts in the front-end
- Redirect /member/ to /member/user
- get user id in a plugin without a function
- WP_User object behaving strangely when used inside Admin Panel?
- REST_query_vars for users
- How to use a transient inside WP_User_Query
- Allowing users to edit only their page and nobody else’s
- How to bulk change user role to “No role for this site”
- Showing extra profile fields in admin – problem with underscore
- Add an ‘edit profile’ page with Genesis
- Exclude Current user email and send notification
- Disallow user registration/checkout via Hotmail/Yahoo
- User management missing after migration to new host
- Add new user and user bio at same time
- Validate user meta and redirect
- Let admin users edit member profiles from front end
- Storing additional information about the user
- New User Registration email
- How can I list users by date in an array in meta_value?
- Email Subscribe for Downloads in WordPress
- Cant edit profile from frontend
- Can I provide a user’s user_ID to them and can it also be searchable in a member’s directory
- application password is missing