Sounds like you have an issue with another plugin or function that is trying to prevent non logged in or non admin users access to the wp-admin area so it is redirecting from wp-admin/admin-ajax.php and giving you your 302 response.
You need to find the code that is doing this and add a conditional not to redirect if the DOING_AJAX constant is defined.
Related Posts:
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Where do I put the code snippets I found here or somewhere else on the web?
- Disable plugin / plugin action via theme
- How to remove WPML Generator Meta Tag by theme’s functions.php (override plugin function)? [closed]
- Need to create a Theme demo site that features multiple themes
- Why does including a file in theme’s functions.php not work?
- WooCommerce create new product and add to cart on form submit
- Adding New Role
- Add Top-Level Menu that opens URL
- wordpress custom login successful redirect hook
- Over write plugin templates
- How to find out what blocks are added by a plugin
- Override plugin functions in functions.php
- Using has_filter with a class based plugin to check whether the plugin is active or not
- ajax front-end increment views on click
- Display a text message if the field is not found and not if found
- Scope for PHP Variables Assigned in functions.php or a plugin
- Override the filter from plugin in child theme
- Add a plugin before main container
- Get all categories of custom post even not assigned
- Function to prevent users from trashing comments
- How does WordPress process plugin installations?
- How to create TEMPORARY Download links in a wordpress POST?
- Conditionally add apt. Open Graph meta data to different pages on WordPress site
- How to append to title via functions.php for auto-posting plugin [duplicate]
- wordpress plugin is not activating from widget
- Custom random quote widget breaks when used in multiple sidebars
- How to change constants in WordPress wp-config.php programmatically?
- How to use a class from another plugin
- How to call WordPress function other files
- How to remove custom post type and add category and post name
- Plugin is a widget, but I want to call it in the head, can I?
- Cannot get wpdb data (Error in a simple fuction) [closed]
- Basics of changing plugin output
- Why can’t I call a (member) function from within a foreach?
- Are there action hooks for comments?
- Help with WP Business Directory Manager Plugin?
- Return multiple values in a shortcode attribute
- get specific value of a array | PHP
- Shortcode Attributes to Return different $_POST
- Plugin onclick button activate other plugin
- Loading a plugin’s js file from functions.php
- Activate and deactivate plugin automatically
- dynamic name of the style for wp_enqueue_style
- WordPress function to add text warning on every pages [closed]
- How to access OOP plugin function inside themes or other plugin
- Different registration form for different roles
- Call javascript functions from each page
- Add_image_size not generating correct size
- Elementor Pro display featured image on section -> style -> image using shortcode
- How can i call a functions.php function, from inside my plugin class?
- How to make WooCommerce payment method field optional?
- Create a pdf from the entries in DB
- RSS feeds for specific topics
- add_rewrite_rule to load different page, without changing URL in browser
- WordPress Custom Hook with Class method
- Allow a particular user to access a particular plugin?
- how to define a html folder to make it work with WordPress commands
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- Overriding a function in a WordPress plugin
- ACF Fields are not showing up on Homepage
- Adding discount functionality to the cart
- Precheck fields when I add a new post
- Get Shortcode output to database for static post_content
- Use buddypress function outside of plugin
- Securing langugae folder
- WPML – Hook when language is switched (change user language)
- Call function with button and return response
- Use action, filter, or hook to append HTML to WordPress plugin function
- Change custom rewrite rule when permalink is updated/changed
- Return function results within shortcode
- Save Post Permalink In .txt File
- Why is WP template_include overwritting all templates rather than specified page?
- How To Add Code To WP Without Plugin or Functions
- Disqus comments count taking long to update
- plugin not hooking to my custom hook
- Populate select option with JSON file
- How to Call Function From Separate WordPress Install on Same Server?
- Home page letters
- How to echo a plugin’s function into a template?
- Find all strings between an enclosing shortcode
- Wp Ecommerce Reposition Product Page Product Thumbnail Image
- It possible to implement an adhoc php web application with wordpress?
- How to Overwrite validate_plugin function
- making a glossary with wordpress
- date function not correctly returning date
- Disable plugin function
- Trying to output a “Most visited blogs” list in wordpress multisite
- Access to wordpress method inside of classes
- How to prevent page load on form submission
- wordpress Search function is not working
- Send email notification when meet the condition
- WordPress: code structure
- PHP Creating a formula from mysql db values and db stored math operator
- filter just a portion of plugin function
- Make plugin admin page visible to other roles
- wp_enqueue_script doesn’t load JS in plugin
- Read page- or post-content across different builder-plugins
- Remove posts that start with similar words (like a delete duplicate posts plugin)
- How to get next day date of a specific day