Use get_userdata() to get a user object, and the email address will be the email property:
$userdata = get_userdata( $user_id );
if ( ! $userdata ) {
return false;
}
echo $userdata->email;
Related Posts:
- Search is always exact [closed]
- Empty search returns home page, how to return not found search page?
- How to look at code in WordPress repositories without downloading?
- Insert DIV container below 1st search result
- Search in WordPress – Difference of searchpage.php, searchform.php and search.php?
- How to make WordPress search prioritise page titles?
- How to add the author search in the default wordpress search?
- How to search for users based on added user metadata
- Search by Post ID and display content of the post in search result
- Let user change posts per page
- Exclude top-level pages from search results
- Search in non-English language returns only one result
- Turning Broken URLs Into Search Terms?
- How can I implement faceted search with WordPress 3.x?
- Search uses index.php instead of search.php on renaming search field from “s”
- Search results URL without query string variables
- How to control WordPress Search Behavior?
- Changing the default WordPress search action
- Set default text for the_search_query();
- Changing the search results destination URL
- What are the different options for excluding certain post types from search results?
- Search in post title and custom fields
- How to change users smart quotes to dumb quotes in search bar?
- Making a list of post tags in string
- Trim the search result around the search word
- WP_User_Query search with multiple search queries
- update default search function and get postmeta entries
- Searching custom fields is removing search on the post_title column
- Edit search results in order to advertise
- Is there a wordpress plugin enabling an autocomplete search box, then jump to page?
- Date_query problems
- WordPress, fetching users with an exact match in a string of comma separated values in user_meta
- Need to return a list based on Slug
- search form redirects to home
- How can I hide uncategorized products from search results?
- Exclude html from search results (image names, etc.)?
- documentation for wordpress 3.7 keyword
- How to have search results page sorted by post date
- How to combine two get_users() array?
- Search Results Page outputs HTML code
- Custom Query Content Filtering
- Search buddypress groups with querystring in url
- Make search result display 1 Company or 2 Companies
- Displaying number of search results for each post type
- Search not working. Appending a “
- Search posts by Tag
- Search returns everything if search term has a space
- BuddyPress – Search members by name and also by username
- Include results with tags relevant to the search keyword with JSON rest API v2
- Search function does not work on mobile devices
- Changing the ORDER BY in WordPress default search function
- Show search count by post type
- Search by Attachment ID
- How Can I Make Dynamic Search Form While Converting Html To WordPress?
- Get the search element only on 404
- Specific website content
- Second page (and next) of search results redirects me to the home page
- search results to a variable in search.php
- Enhancin 404 to contain a search from URL
- Checkboxed term search
- Load search results into a div
- Search using ACF repeater
- Search in posts’ attachments: title, caption, description
- How to track searches using the REST API?
- Exclude certain Gutenberg blocks from search results
- REST API: Search products only in the names
- content-search.php duplicating the output for a certain post type
- Form for search pages by meta datas
- Altering search results to handle a post meta field not working in current WordPress
- WordPress REST API Search decoded URL with cyrillyc symbols
- Hide Search Form above results
- searchform.php not included by get_search_form when using wp_dropdown_categories
- Modify wordpress search to search only pages and load matched page not search results
- WordPress search post using unicode
- Create search box on Archive Custom post type
- Problem with search results page
- Search result page as a new page
- Search Engine Visibility Issue in WordPress
- Page has no template
- Allow users to search for other users in WordPress
- Auto search field without buttons, shows first result from search page
- How to stop the search results from loading the wrong template?
- search form display no result
- WordPress search not able to find text in url
- Search & Replace trailing strings
- Page/Post path in Search Results
- search does not yield access restricted results
- Customizing Home Page with Pagelines Platform
- Make search result returned only from tags! [duplicate]
- WordPress search form and input type=”image”
- How to search pdf attachment?
- Website Search Results Not Showing Images
- How do I find a shortcode stored in wordpress?
- Return excerpt on Search
- Attached file how can i work the wp_query to search for related names
- Exclude category in search results in functions.php
- Wp query search built out of 4 terms?
- How to quickly search posts by title in Admin interface
- Extending the search function to a specific meta field value in the admin posts table
- How to change text on get_search_form()