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
- What’s the preferred method of writing AJAX-enabled plugins?
- force enqueue script to be first in order of prominence
- Editor not displaying dynamically after clicking on the button
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- ‘Lazy loading’ list of posts with pagination
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- Check javascript file Proper way in functions.php
- Errors while using ajax from external wordpress page
- How to include admin-ajax when loading external javascript
- Dequeue / Deregister script and replace it with a new plugin
- Passing RichText attributes to function onChange
- jQuery function didn’t work in my plugin
- Handling jQuery Component Collision
- JQuery not working in my plugin [closed]
- WooCommerce get_price returning wrong price when used via ajax
- How to test nonce with AJAX – Plugin development
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- AJAX search posts and pages
- Updating the Drag-To-Share eXtended share URLs?
- Change upload folder for a CPT
- Best place for if/else piece of code related to custom plugin?
- How to load wp_editor via AJAX
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- Display wordpress post’s in popup?
- Using color picker in plugin, does input attribute order matter?
- Create shortcode to echo javascript
- how to insert data in wordpress table usnig jquery ajax
- What are the Best Practises When Using AJAX in Plugin Development?
- Redirect to another page using contact form 7? [closed]
- Delay JavaScript files from loading
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- “Conflict” with jQuery (or its plugins)?
- Submit Form data to another page via Ajax (WordPress Way)
- How to display checked posts on another page over AJAX? (like comparasion style)
- Using WordPress to build membership Page
- How to get specific string/value from an array? php [closed]
- How to use custom Javascript code inside a plugin?
- How do I make sure that my plugin only runs on article detail pages?
- WordPress API functions not working at AJAX functions.php call
- Send Array from JS to php file then insert it in wp database through a plugin
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- 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
- Fixed: Console.log twice in the edit function
- Trouble with AJAX using GET
- Cannot pass value variable to WP AJAX functions
- Create a form and have custom menu display based on user answers?
- Dynamic input fields in WordPress Plugin
- Overwrite js code using WP_Footer
- Storing Array of values into wordpress options
- WordPress environment not loading properly
- How can I use wp_ajax_response for front-end error reporting?
- WordPress Feedback popup with date saved into table
- Not getting result using ajax on wordpress
- Creating a user ‘add custom field’ section
- Javascript not working
- Need to hide an element depending on date and post category
- AJAX doesn’t pass variables to the php function in the plugin
- How do I convince this button to do something when it is clicked?
- Is it possible to run javascript on plugin deactivated?
- How do I output user_registered time in my correct timezone?
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Count div with class (.length) only shows 0 [closed]
- Ajax button “Load more” is not loading correct language version posts for logged out users
- Inline AJAX script passing variables to PHP
- wordpress admin-ajax bad request 400
- Vanilla javascript in custom gutenberg block not working