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]
- Account Status/Login on Main Menu with Avatar Pictures
- Are there any hook or filter when refund is done through admin -woocommerce
- How to change or add Woocommerce thank you page URL key content?
- Menu not show woocommerce product category
- Orders being sent to wrong admin email in WooCommerce [closed]
- Action wp_login_failed not working if only one field is filled out
- WooCommerce: add different order item meta for each item in order
- What is the right hook to use in WooCommerce for handling the post of the sale price?
- In WooCommerce filter the available Payment Methods by User Role [closed]
- Add Additional “Checkout” button next to “Add to cart” button in woocommerce product page
- Woocommerce: Remove variant options from admin new order email
- get deepest Woocommerce Product Category on Archivepage
- WP WPQuery, not running properly in WP CLI
- How to get all products from an order including variations via SQL query?
- What is the action hook for an order that fails on frontend checkout in WooCommerce?
- Woocommerce change tax rate programmaticly
- WooCommerce shipping – Different product different shipping? [closed]
- Remove action added through function
- Filter get_adjacent_post to follow woocommerce product category
- Run function on “Place Order” [closed]
- Get the cart details from the order id in woocommerce?
- Get the category ID in checkout page woocomerce
- “Cannot read property ‘replace’ of undefined” Javascript error when trying to add attribute terms from add product page [closed]
- reset password link redirect to login page
- WooCommerce product taxonomies and menu export
- Javascript / Ajax Error After Migrating To New Domain Name
- How can i stop woocommerce checkout event based on api request result?
- WordPress Twenty Seventeen header image size not responsive for mobile
- WooCommerce back-end very slow takes 10 seconds to load, slow queries
- Woocommerce custom meta fields, sort by date
- jquery.validation.js is not working in woocommerce checkout page form
- Delete cookie when changing url (when navigating away from specific page of website)
- multi-vender wooCommerce ability to separate products based on zip code [closed]
- WordPress error on log out ‘Not Permitted’ and can’t log out
- Additional fields on Woocommerce’s rating system
- Woocommerce product image [closed]
- Question on WooCommerce Syntax
- Tax are not showing on order while placing order with REST API
- woocommerce_new_product action doesn’t fire
- Change The Woocommerce Product Categories Dropdown Widget Placeholder Text
- Forcing frontend login with UI switch
- minimum order item for certain products exempting 2 other products (in bulk)
- Is it possible to checkout with 2 different shipping options on a single order? [closed]
- Sender e-mail address, for new order email to customer, is suddenly wrong [closed]
- Pass class to Woocommerce shortcode [relative_products] [closed]
- Undo WooCommerce CSV import
- A Woo commerce extension has deleted my old theme.How to undo? [closed]
- Woocommerce Advanced Shipping (WAS) condition is not being called when selecting “Ship to different address” [closed]
- Strip string from $_product->get_title() to get a cleaner mini-cart
- WooCommerce Product Table Conditional styling
- Product page attributes dropdown show price
- Smart Design for Blog + Woocommerce + LearnDash + Forum/Bodyboss
- Ajax add to cart not updating Elementor mini cart totals
- I want to store user password (during registration) in an other table in the same database in addition to the user table MD5 Hash
- How to edit the default woo-commerce Store page meta title tag “Products”
- WooCommerce – 500k Jump in Order Number?
- Need help with woocommerce roles
- Change WooCommerce product and variation prices programatically without affecting performance
- Help to locate a woocommerce hook method
- woocommerce_product_quick_edit_save hook not fired
- Login form does not store/remember/suggest users password
- Can I use taxonomies to make a multistore with woocommerce?
- Why does wc_get_products($arg) return no products when $arg = ‘average_rating’ => 5.0
- Query product’s image path by category WooCommerce database?
- Delete comma in front of currency woocommerce
- woocommerce_sessions – Table does not exist
- How update price for variable product
- currentURL is not defined
- Woocommerce add 15% discount to a product if quantity is greater than or equal to 6
- Related products based on keywords
- Add button linked to single product page on order detail page
- syntax error – woocommerce
- How to on/off woocommerce filter with redux framework [closed]
- How to set up a single product shop with woocommerce? Skipping the product archive
- I’m trying to display product categories on each product in the list
- Cross-sells on WooCommerce product page
- Admin Order adding an extra product on add_line_item
- Woocommerce update cart
- Get WP All Export row ID
- WooCommerce – missing products when viewed by tag
- Quotes not rendering properly in WooCommerce settings API [closed]
- Hiding all products except for one in wordpress admin panel
- Allow authors to use their own PayPal account and payment process automation [closed]
- Different customer login form than administrator login form?
- Can a woocommerce hook alter the UI of a website?
- Edit woocommerce subscription email
- cannot create product attribute (taxonomy) and add terms on the same execution
- How do I get my image for my product to not be blurry
- Product Variation Auto Select when only one 1 and mark the option [closed]