I have solved the issue. If you are having a strange validation problem that ONLY happens when you first load a page, and you have Woocommerce running on this particular site it might help you too.
Solution to my specific problem:
/**
* WooCommerce login not working on first try fix
*/
add_filter('nonce_user_logged_out', function($uid, $action) {
if ($uid && $uid != 0 && $action && $action == 'woocommerce-login') {
$uid = 0;
}
return $uid;
}, 100, 2);
Related Posts:
- Remember page before login page, redirect to that page after login
- Woocommerce Login Redirect not working [closed]
- Redirect user after login through woocommerce login page to page with his/her username?
- Woocommerce Login Redirect to old domain
- wordpress/woocommerce login url not redirecting correctly
- Anonymous users can not access website
- How to use woo commerce login to authenticate code php pages?
- How to show woocommerce login / registration form in modal
- How to change redirect code? [duplicate]
- Login page so wide [closed]
- Remove login fields from /customer-account page [closed]
- How to add a new endpoint in woocommerce
- Adding “Remember Me” in custom login
- Slow Loading Attribute Select – WooCommerce Backend
- How can I define a custom template for woocommerce [products] shortcode? [closed]
- How to keep always logged in development environment
- Use Hooks to Limit One Comment Per User Per Post – Hide Form if Already Commented
- send users logging in from wp-login.php directly to home page of site, rather than dashboard
- Display Categories Assigned to a WooCommerce Product
- Get current WooCommerce endpoint not working
- Changing Woocommerce price display [closed]
- Which WooCommerce hook do I need to use to place the coupon field after the checkout sidebar
- Set a default quantity input value for a variable product category in WooCommerce
- WooCommerce product sorting VERY slow
- WooCommerce change price in cart [closed]
- Categories not shown in admin after adding woocommerce products via wp wc cli
- Woocommerce – Move product without price a the end
- Enabling autosave when plugin disabled
- WooCommerce email text based on category && shipping zone && payment method [closed]
- Extra row / text field to a product page (WooCommerce)
- woocommerce_email_attachments filter arguments [closed]
- Problem with cURL and rest API
- ‘profile_update’ hook alternative for WooCommerce user meta data
- How to add a user custom field into Woocommerce emails?
- WooCommerce subscription, give option to prorate or not to prorate to user while switching subscription
- How to handle Woocommerce API credentials
- Add custom CSS class to product images
- Get product variation attribute titles – WooCommerce
- user password reset e-mail
- Extending the woocommerce product export functionality
- Adding Transaction-Specific Conversion Tracking from Adwords into WooCommerce
- New field on checkout is shown but it’s not saved on the order details [closed]
- Changing a text label into an image
- Is there anyway to get the inputted password string from the login form?
- Custom Price for WooCommerce [closed]
- Woocommerce altered my homepage, and I can’t figure out how to revert it [closed]
- Absolute search against wordpress api
- Is it possible to remove editor from a custom product type?
- Change Firstname & Lastname order in the order-processing e-mail templates
- Show password while you are typing it on the “my account” login page
- Where is the php file, that does the checks for login information?
- /page/ is not working with a custom permalink structure (WooCommerce)
- WooCommerce Bookings Plugin Not Saving Order ID
- Show errormessages on wrong username/password on custom loginform?
- Trying to run Javascript on AJAX call
- Rewrite rules for sub category (child product categry & grand-child)
- Woocommerce show field in product if product-tag is “VET” else hide
- How to make a “subtitle” for each Woocommerce product
- Create Product with Woocommerce API, but Variations are not linked
- Google Analytics gtag code messes up woocommerce cart & login
- Hiding the WordPress login and password fields from login page
- Woocommerce API security concerns
- How to add a wrapper element on image for products page
- Dynamic subdomains for woocommerce affiliate sales but NO multisite. Is that possible?
- I wan redirect link post search to search product woocommerce?
- Limit image resolution on upload file for specific field
- Infinite loop when logging out using custom login form
- Woocommerce pagination problem- page/2 = 404 solution
- Woocommerce , how to set billing_address via JS?
- Set up PayPal with wrong email by mistake
- Does WP-WooC support filters at database?
- How to send welcome email once user buys the subscription
- Removed Sidebar in single product page
- Reorder PRODUCTS in categories Woo
- Enable Payment gateway if ACF checkbox in user profile is checked
- Woocommerce section name? [closed]
- how to change value return by _stock_status
- Retrieve Woocommerce Cart Url with javascript/jquery [closed]
- WordPress Login & Register works in localhost but don’t work on server
- deactivate product-page image slider on mobile
- Change the default WordPress image on the dashboard login to a custom image [duplicate]
- Increase product variation limit in woocommerce
- WooCommerce widget “WooCommerce Products” template [closed]
- How to get _POST variable on WooCommerce product page (form on homepage)
- Woocommerce woocommerce_breadcrumb_defaults filter [closed]
- Some Admin disappeared
- Sort by promo code used woocommerce admin panel [closed]
- Search box missing Woocommerce Product Bundle Extension
- How to display India country first in country selection drop down list in WordPress
- DatePicker in Woocommerce (My Account) Registration [closed]
- problems with an object product wooCommerce [closed]
- How to change “reply to” email address for specific Woocommerce products
- Woocommerce API REST search by multiple keywords
- Problems using WooCommerce & Qstomizer
- Remove Ok Button when popup message
- woocommerce change tax rate with checkbox
- How to handle WordPress account for terminated employee
- WooCommerce Pruduct and Category Grid costumization [closed]
- how to get the current page endpoint
- Why am I not able to login to the admin