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:
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- How to create popup same as wordpress popup feature
- 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 fetch serialized data from wordpress options
- 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?
- How to include admin-ajax when loading external javascript
- How to remove an Ajax action
- Has anyone used require.js for handling plugin scripts?
- Passing RichText attributes to function onChange
- jQuery function didn’t work in my plugin
- 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
- How to load plugin after page is loaded – pagespeed issues
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Form isn’t inserting data into database with ajax plugin
- AJAX search posts and pages
- Updating the Drag-To-Share eXtended share URLs?
- Best place for if/else piece of code related to custom plugin?
- wp.media javascript issue with on select
- jQuery for custom plugin not working with Divi theme
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- 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?
- Create shortcode to echo javascript
- how to insert data in wordpress table usnig jquery ajax
- Redirect to another page using contact form 7? [closed]
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- 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 use custom Javascript code inside a plugin?
- 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?
- WordPress API functions not working at AJAX functions.php call
- Calling a class method instantiated by ajax call in wordpress [closed]
- 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
- Error datatable whit ajax
- Fixed: Console.log twice in the edit function
- Trouble with AJAX using GET
- 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
- Create a form and have custom menu display based on user answers?
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Overwrite js code using WP_Footer
- How to use information from the database in the front-end?
- 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]
- How to access values from your own settings page in javascript?
- How do I call an action hook into wp_ajax hook callback function
- Select posts from list and add them in a new list