You can add user meta after login by using the wp_login
hook. Make sure to set a higher priority (99 – the default is 10) to make sure to get the data after everything has processed in the core wp_signon()
function.
From the Codex …
function add_my_user_meta_after_login( $user_login, $user ) {
//Add my user meta code
}
add_action('wp_login', 'add_my_user_meta_after_login', 99, 2);
Related Posts:
- Where the Nickname is being used in WordPress
- How to hide fields from my user profiles
- WordPress logo upload option in theme panel
- Not getting author rank when using return
- Redirect to another page using contact form 7? [closed]
- how to display recent post by category on home page
- Get user edit functions in frontend for site admin
- How to delete only user meta value (not key) from usermeta table in wordpress?
- How to copy data from user profile page (profile.php) to theme customizer
- Average Account Age
- How can i list random post from multiple category?
- How does WP handle multiple matching rewrite rules?
- how do i remove posts from a WP_Query so the pagination is right?
- Menus, but not by theme location
- how to load the language file in plugin?
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- How to use get_theme_mod in gutenberg editor wordpress?
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- Accessing post’s meta data based on user’s click of a post
- How to get current post user id
- Events Made Easy Plugin – Duplicate Title Tags
- WooCommerce shop page orderby [closed]
- Different UI in WordPress
- What is the correct way to update both WP/plugins/themes without breaking the site?
- Get posts from WP_Query and format them on admin_head
- Redux Framework has an embedded demo. Click here to activate the sample config file
- How to Display a Plugin function (content) on frontpage using index.php
- The problem with WordPress Importer
- How to query the custom fields by language?
- Why does my functions.php cause white-screen and media-library issues?
- How to make a slideshow shortcode based on the WordPress gallery shortcode? [closed]
- How do I “get the next 10 posts after post_id == x”?
- how to give a user a role?
- switched from query_posts to WP_query, not working now?
- Information and Videos for Customers in the Backend [closed]
- AJAX search posts and pages
- All of my custom posttypes are 404’ing
- Display post lists in 2nd paragraph
- DROP TABLE with uninstall hook not working
- Redirecting a buddyboss profile tab to a different tab if not subscribed to a specific membership
- wp_get_post_terms is difference obj model than the one in rest api response
- How to change this WP_Query to get all ProductIDs and not only specific one?
- how to add a button next to the wordpress view button?
- Classified ad website : which solutions to use? [closed]
- Modifying Author Link to add Author Meta in URL
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Best place for short bio,image and button [closed]
- How to call WordPress function other files
- What are the specifics of WordPress development I need to know? [closed]
- Insert content of a post into another
- WP_Query and NULL meta keys
- WordPress shows error related to allow_url_fopen
- Can you use another Profile Builder shortcodes through advanced custom fields
- how to use in custom single.php template using php?
- How to create a code editor for my plugin .?
- How to show only next post pagination link using wp_link_pages()
- update_user_meta() misfires sometimes
- Finding the URL to be used to check if plugin is installed with a theme
- WordPress page and plugin list using sql query
- Js file is not adding using this code in functions.php
- How to create a custom shortcode based on the layout?
- wp_footer hook only working on homepage not in other pages
- Using AJAX to generate front end / viewer end pages
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- How to redirect users to their profile after they successfully edit their profile
- Cannot update user display_name field
- Plugin can not display in my custom theme
- WooCommerce search products between price range using WP_Query
- ACF: post query, hide duplicate values [closed]
- How to use get_template part in the plugin?
- Jquery NoConflict Problem
- Overriding Parent Theme… will cause plugins failure?
- WordPress premium theme development [duplicate]
- How do I combine a theme with a plugin
- how to force tag page layout to use same as search layout?
- How can I show a different theme for admin users? WP 3.8+
- How to insert multiple postmeta values with one query?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Shortcode to update user meta
- How to Loop Through all Posts and Count Attachments using Get Media Attachments
- How to have sample page for each new register users in a membership website
- How to show the number of website visitors in my theme
- How to extract data from ‘edit my profile’ page in WordPress?
- How to write “alt” tag in image for wordpress code?
- How to get a list of bundled products using wp_query in woocommerce
- order posts by `meta_key`, Does not display posts that does not have `meta_key`
- WordPress Apply filter in plugin causes 500 internal error
- Meta query for comparing two dates
- multiple language website navigation menu suggestion
- How to multiply a post to test internal search results?
- Use different single.php file based on condition
- how to connect the author profile with google webmaster tools in multiuser blog?
- Replacing global wp_query
- Customizing Titles on the Fly with Code
- Add SideBar/Widgets Just Below the Post
- Add filter on html tags,attributes on specific function in wordpress
- plugins not working in custom theme
- Release the plugin in the WordPress repository where redux is used
- Error in pdf generating plugin using FPDF