As Jacob Peattie mentioned this issue was occuring on logged out users and his suggestion of hooking wp_ajax_nopriv fixed the issue:
add_action('wp_ajax_nopriv_plugin_prefix_page_change', array($this, 'plugin_prefix_page_change'));
Related Posts:
- How to create popup same as wordpress popup feature
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Ajax, jQuery and WordPress
- Load css classes after using ajax calls
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Why is my ajax call refreshing the page?
- How do I use WordPress PHP functions in my Javascript code?
- Admin-ajax.php is dying “0” without processing function
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- Check if email address exists front end with AJAX in a plugin
- Best approach to fetch data from wp options to js file or php file
- Ajax contact form widget plugin data not insert in database
- wordpress add_action() issue in ajax call
- Ajax request sends url rather than data
- wc_get_template_part doesnt display the content [duplicate]
- Jquery POST Ajax Return null data in wordpress
- How to properly enqueue jQuery knob on WordPress without conflict?
- Ajax Call not Working in Plugin
- JS working when used normally but not in wordpress
- AJAX update fails for public/non-admin users
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Overwriting Plugin’s Ajax callback function from theme
- Javascript in plugin not working
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- WordPress ajax not working in registration
- How to get site homepage from plugin?
- get_option include in my adsense
- Ajax in Plugins: returns the whole page
- Jquery post responses 500 error after some time and lastly an 503 error
- Ajax response from Media Selection does not update ALL information more than once
- What’s the preferred method of writing AJAX-enabled plugins?
- How to load wp_editor via AJAX
- Pass PHP variable to javascript
- force enqueue script to be first in order of prominence
- Help making my pagination plugin better
- Handling jQuery Component Collision
- How do I only load a plugin js on it’s settings pages?
- How to pass JavaScript variable to PHP in wordpress widget?
- Is dynamic forms/entries possible in Widget?
- Editor not displaying dynamically after clicking on the button
- jQuery AJAX call not executing in Plugin
- Create Proper WordPress Ajax Request in JavaScript, NOT jQuery
- How to fetch serialized data from wordpress options
- Execute a function using ajax
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- “Conflict” with jQuery (or its plugins)?
- Submit Form data to another page via Ajax (WordPress Way)
- How to add an element right after the article using jQuery?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- How to display checked posts on another page over AJAX? (like comparasion style)
- Localizing methods for jQuery append prepend wrap parent
- WordPress front end AJAX. Return 0 :?
- Using WordPress to build membership Page
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- How to get specific string/value from an array? php [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Save user total active time after login in wordpress [closed]
- Asynchronous request in wordpress
- How to use custom Javascript code inside a plugin?
- Why does my jQuery plugin show up as text in WordPress?
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- How do I make sure that my plugin only runs on article detail pages?
- Is there a better way of handling AJAX requests in WordPress?
- Disable submit button order
- WordPress API functions not working at AJAX functions.php call
- How to include my Ajax calls in one function instead of calling different ones every time?
- Calling a class method instantiated by ajax call in wordpress [closed]
- Load CSS files in header of Bones theme?
- jQuery code didn’t run on my plugin
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- how to request a script more than once in wordpress
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- Using AJAX to run SQL statement and populate dropdown
- Javascript from Easy-Fancybox place into footer
- Adding a jQuery modal dialog to the admin area
- best way to run a php script away from the template?
- Ajax call not working in wordpress through a plugin
- Send Array from JS to php file then insert it in wp database through a plugin
- can’t unzip file
- Pass PHP variable to javascript
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- wp_query ‘s’ parameter does not work with WC_AJAX
- How do I reinit WordPress plugins dynamically using jS?
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Error datatable whit ajax
- Fixed: Console.log twice in the edit function
- Cannot run script properly with my custom plugin
- Trouble with AJAX using GET
- Overriding inline !important CSS with Javscript code snippet with media query
- WP Ajax DB issues
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Calling PHP function with AJAX
- Add style to body based on url
- Cannot pass value variable to WP AJAX functions
- jQuery Ajax not loading page with ACF fields
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?