You can use this:
$user = get_user_by( 'email', '[email protected]' );/*$user gives you all data*/
$first_name = $user->first_name;/*$first_name gives you first name*/
$last_name = $user->last_name;
Related Posts:
- Where the Nickname is being used in WordPress
- Remove WordPress Toolbar buttons
- How to hide fields from my user profiles
- Remove toolbar option (and set to default to no) in user profile
- How to display public user profile with 2 additional fields? (GitHub source code included)
- How to make first_name and last_name required fields in user profile?
- How to upload user profile image from frontend in wordpress ?
- Information and Videos for Customers in the Backend [closed]
- Redirecting a buddyboss profile tab to a different tab if not subscribed to a specific membership
- Can you use another Profile Builder shortcodes through advanced custom fields
- How to redirect users to their profile after they successfully edit their profile
- How to have sample page for each new register users in a membership website
- how to connect the author profile with google webmaster tools in multiuser blog?
- Add user meta after a user has registered and logged In [closed]
- Get user edit functions in frontend for site admin
- how to create user profile pages and display them based on users roles
- wp_set_password() does not work!
- Which membership plugin enables users to enter html links in blogs and on their profile page?
- Using WordPress to create a simple web app (SaaS) [closed]
- How to get author developer link on plugin page
- How to copy data from user profile page (profile.php) to theme customizer
- how do you point ‘screen_function’ to a function in the same class? [closed]
- Displaying custom profile fields using Mingle Plugin
- How to make wordpress backend mobile optimized.?
- Tips on using a custom template with Ultimate Member
- Issues with creating user profile for a subscriber, but with different profile page and functionalities
- custom user profiles like linktree fully customizable on the front end
- WordPress Stock Update Programatically
- Loading a plugin’s js file from functions.php
- Woocommerce Backend Search by Title and SKU
- I Setup Rate My Post Plugin On Site But Now Got Issues In Google Webmasters
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- How-to: This block can only be used once
- output html on post or page from custom plugin [closed]
- Custom Post Type – custom form in dashboard
- Problem with add_action
- To perform the requested action, WordPress needs to access your web > server
- Custom API plugin to execute 3rd party API to retrieve data
- Is there a way to convert shortcodes to html content?
- Proper way to handle admin-ajax calls
- How to display the featured post on the category page?
- Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite
- How to find the list of custom post type where logged in user is author
- UTF-32be error WordPress
- Loop in elementor custom widget not working
- Change text string in a plugin
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- wp-admin send 404 error
- How to create plugin/ page that reads from database
- Stop wordpress from requesting external jquery from googleapi
- Can the benefits of performance optimization plugins outweigh the tax of installing them on performance?
- get_users(); Is an Undefined Function When Used in Cron Job
- Alternate email sending service – eg: AWS SES [closed]
- 5 PHP Fatal error: Uncaught ArgumentCountError (Cannot Find)
- Disabling a plugin lead to styles being shown as plain text
- the_content() printing DOCTYPE, and tags in the middle of page
- How to deal with Slow HTTP POST (slowloris) vulnerability
- How to create author profile showcase in wordpress
- What is the purpose of WP_CONTENT_URL?
- Blog previews on custom page with more buttons
- Order posts by meta key ( Using ACF )
- Control page content visibility based on URL parameter
- Where does MonsterInsights put Google Analytics code?
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- Elementor Custom Control: How to get input value?
- Elementor page builder plugin not loading up all the way? [closed]
- How to add fields in the WordPress editor?
- How can I fetch data from another website to my wordpress website with mysql database
- Sucuri SiteCheck failing on domain with iThemes Security Pro plugin
- How to translate WP Blog (search, category etc.)?
- WordPress SVN UTF-8 issue
- How can I concatenate variables to search results title? [closed]
- Migrating WordPress – New domain entry, links broken
- Search Results Page filter by page title
- Activate and deactivate plugin automatically
- WooCommerce: after install hook
- Test my WordPress Plugin standard or not
- Theme My Login Shortcode Doesn’t Return Anything
- How retreive saved data from gravity forms in my template?
- is_rtl returns false while it should return true
- issue in wp_localize_script
- Import MS-Access data file to make the searchable page
- License validate function
- Sanitize $_GET variable when comparing
- Include Minit plugin in theme [closed]
- Plugin for an interactive image? [closed]
- Where can I save plugin data?
- echo get_option in header template
- How to display all functions (hooks, filters, or custom php) used on a page inline
- wp_enqueue_style on template_redirect level?
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Clear out old images, any advice?
- problem with sql query
- Access post title from custom meta box on title change
- How to add a new column with text fields to WooCommerce Cart List?
- How to use filter to disable adding a product to wishlist?
- Running multiple security plugins
- Save user total active time after login in wordpress [closed]
- add_query_arg not work in admin
- Add a “View all” button on WooCommerce product archives pages