The user_register
hook probably fires too early.
Try:
add_action( 'bp_core_signup_user', 'auto_login_new_user', 100, 1 );
$user_id
is passed by the bp_core_signup_user
hook.
Related Posts:
- Remove username in emails or swap username for email
- Help with adding pagination to custom wp_query
- Reordering Buddy Press profile navigation [closed]
- Show css depending on activity type in BuddyPress activity-loop [closed]
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- How do I programmatically set a user as spam in BuddyPress? [closed]
- WordPress Stripping Colons?
- Buddypress update user avatar image via REST
- After adding my website to a new server, I keep getting a unexpected end of file error, but the file is identitcal to it’s original source
- Change homepage content if user is logged in – BuddyPress
- How to do something when user profile rendereing?
- implementing a jQuery “click to expand” link in WordPress [closed]
- is user member of a group, show them categories [closed]
- Wp favorites posts by specific category? [closed]
- Display multi-select box choices in a bullet list [closed]
- Customize Buddypress adminbar [closed]
- Prevent Buddypress Rewrite Rules on Non-Buddypress pages/posts
- copy fields value to another field
- How do I visualize the author’s post from the front end?
- Change username link in admin bar
- how to get buddy press messages based on thready_id?
- Where is the php file of single member profile view (BuddyPress)
- Create a dynamic buddupress tab
- Get string from array and start loop [closed]
- 2 small questions: How to redirect to a created page & show that pages title in wp, bp
- How does printf( __( ) ); work?
- Displaying Logged-In User Name in WordPress Menu
- Change the filename format of saved featured images
- How to use wp_insert_user on WordPress Multisite?
- How do I add a php statement to a jQuery string
- Upload images and attachments from frontend form
- Config apple-app-site-association file with wordpress
- How to use the php if statement [closed]
- Should I use wp_mail or PHP’s mail? [duplicate]
- Successful or Error Message after running mysql code in functions.php
- How can one utilize a variable as a callback function name for add_settings_field
- Link to file in plugin directory from wordpress template?
- Using a switch statement in WordPress
- Trying to make php run in a post
- Pass PHP variable to JavaScript without inline JS
- WordPress Site Running Extremely Slow on Dedicated Server
- Where Does WordPress Make cURL Requests? How To Add cURL Option
- filter default query to show just selected level of child pages in wordpress
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- Redirect undesirable domain
- WordPress Gravatar filter is removing my custom attributes
- How to make my custom widget appear within WordPress widgets? Plugin development
- Trying to install wordpress locally with mamp, but have unsupported php version
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- PHP code to use on next & previouspage links
- How to optimize the IF condition with many conditions and same output [closed]
- Show latest posts in a plain HTML website custom widget [closed]
- How to list posts from a plugin taxonomy?
- How to remove coupon dropdown feature
- How to put a form with php code into a variable or shortcode?
- WordPress redirect redirecting too many times or not at all
- how to prevent wordpress admin from logging in via woocommerce my-account page
- Add html link in functions.php files of the theme
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Problem with custom loop and wp_list_pluck [closed]
- Must filter functions receive all arguments passed to them?
- Prevent Company Name From Translating
- Displaying Slider in Front Page (home) using Customizr Theme
- Usage of var keyword in the core
- How to add PHP pagination to wordpress
- Slow site initial load time
- MySQL Query Returns Array () In Shortcode
- array wordpress when get is null
- Custom search query on WordPress page not working
- PHP session not staying alive. headers already sent
- how can I call a function when time expire
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- Can an AJAX callback function access a PHP variable which was defined during initial page load?
- Filter by Post Type
- Move Jquery.js to Footer
- Updating the database after parsing CSV document
- Need help to create WordPress page that decodes a text file and publishes it in JSON format
- My blog posts section seems to be rendering the other blog posts inside the first? :/
- How to get total gross revenue for current month in the woocommerce dashboard status widget
- Attaching an upload to a user
- Change home_url in searchform.php to go to HTTPS instead of HTTP
- can’t grab PHP $_POST variable
- Loop 1 user randomly
- Wp_mail doesnt work
- Use WP_Query Data In Cookie
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- Is custom behaviour possible when asynchronously uploading?
- How can I show only if custom field has content [closed]
- Top menu disapears in Category Pages when filtering using ACF
- Adding if statement to content for homepage
- Tables not showing divs and loop/php items
- Keeping the previous get value and add another value when submitted
- Pagination not displaying
- Setting WooCommerce currency programmatically
- Masking external links with internal link for member-only
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- How to limit the number of posts in the wordpress loop in conjunction with the “download more” button?
- seo meta description issue in google search
- WordPress Query – Blog Cards Duplicate issue
- PHP Works only for logged in users: [closed]