[Resolved] – It turns out the issue was a conflict with the Yoast SEO plugin. Yoast was re-sending the headers after the user was registered. So the errors were re-checked and the username_exists / email_exists showed up as duplicates. I was able to get around this by disabling Yoast just for the registration page with a code hack in the functions file.
If you run into this issue, here’s the code:
add_action('template_redirect','remove_wpseo'); function remove_wpseo(){ if (is_page(5526)) { global $wpseo_front; if(defined($wpseo_front)){ remove_action('wp_head',array($wpseo_front,'head'),1); } else { $wp_thing = WPSEO_Frontend::get_instance(); remove_action('wp_head',array($wp_thing,'head'),1); } } }
Related Posts:
- Authenticating to WordPress, using my own authentication two-factor system
- Integrating WordPress to my website, while keeping my own authentication system
- Why when I instantiate wp_error in a validation method my user registration method stops working?
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- PHP can I add line numbers to file_get_contents()
- Custom user login page by creating a plugin
- filter default query to show just selected level of child pages in wordpress
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- user_profile_update_errors hook not executing
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Hook called before text widget save
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- How to identify which php file a plugin is using on page load?
- Autoloading Classes in Plugins
- WP Custom tables query
- Capture the Selected Radio Button Value between two files in wordpress theme
- Add More Featured Data Not Sending to Database
- Echo title attribute php
- wordpress admin plugin menu custom css
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- How do you create two separate Register pages?
- Usage of call back function of add_meta_box()
- Building a REST API for your web app exposes primary keys of DB records?
- Change product_base programmatically
- Scheduling an event inside plugin class is not working
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- How to add the sidebar to all the pages except the home page? [closed]
- Custom meta box values are not getting saved for my custom post type
- how to save checkbox data for custom setting?
- Create page template via functions.php?
- str_replace with the_content is not working
- How to Change CSS Colors from Custom Plugin Settings Page
- How to create a field in customize and show that in header.php?
- WordPress shortcode returns the data before
- Passing the name of selected color from the custom component to `render_callback`
- Any ideas why I am getting “I’m getting “wp-admin/admin-ajax.php 401 (Unauthorized)”
- Can a plugin redirect product page based on IF condition?
- Cant register rest routs from class instance
- Where is the PHP code generating an element?
- Save html content of a widget textarea
- Basic wpdb update question
- Plugin development and composer
- Loop in elementor custom widget not working
- How to Schedule Cronjobs for start of every month and year
- How to include custom PHP file both in header and footer files
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- wordpress frontend editor to add extra css to website
- Validate and Sanitize WP REST API Request using WP JSON Schema?
- how to Update 15k products on plugin activation with meta_option
- Check class_exists before class definition / Doxygen problem
- Ajax search shows all results when user empties input?
- Extract links from content
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- Why does my settings form redirect to the homepage?
- Delete or edit postmeta with specific meta_key?
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- Integrating Yii2 and WordPress
- List post by title length
- WordPress widget and customize.php not working in Ubuntu16.04 VPS
- Set default Database Storage Engine when creating tables with plugins?
- Hooks for post saving make a post-new.php to load latest post’s data
- How can I search all plugins for composer’s vendor/autoload.php?
- WordPress WP_Query without query GET parameters
- Need help with pagination
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- Why is it important to check for isset and is_array before checking in_array in this example?
- Action Hook Inside WordPress Plugin Shortcode
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- After disabling WPML multi currency, the currency is still handled by the WPML
- custom post type with role Vendor
- How do i wrap woocomerce attribute in list?
- How to override a plugins script
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- PHP Helper Class to create shortcodes
- Update if post with specific title exists
- Calling a save function from a “submit” button
- Can I remove or edit an include() from a function with a filter?
- Call to undefined function error in plugin
- Adding Additional Variables on Menus Page
- Reusable code that I can store in the function.php and apply to other templates as need. Dry Code
- Custom User Registration script only allowing usernames with 16 characters
- Is it possible to add a custom page to a free WordPress site? [closed]
- How do I make this Metabox show current DB value?
- Woocommerce custom Plugin in wordpress [closed]
- Is there a hack for using is_page() within the function.php file?
- custom plugin with upload files does not work
- save metabox with new values _wp_page_template
- Removed jQuery script from header.php , any problems?
- How to Fix an Archive.php That Displays All Posts?
- List of Events with Multiple Dates: Only NEXT Date
- Set cookie for visitor
- Assign Custom classes to every Excerpt
- Execute Jquery when a specific page in my plugin is loading
- Make next post button link to random post
- How can I get plugin meta data without knowing the plugin folder?
- pass html code to worpdress
- Using flickr api in custom wordpress plugin