I found the solution. data = JSON.parse(data); was needed on the JS side for receiving the data.
Related Posts:
- How to put JQuery/Ajax inside shortcode?
- Using color picker in plugin, does input attribute order matter?
- wordpress add_action() issue in ajax call
- How do I reinit WordPress plugins dynamically using jS?
- Help with customising love it plugin (use within foreach)
- AJAX doesn’t pass variables to the php function in the plugin
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- How can I pass a variable to wp_ajax action?
- How to pass JavaScript variable to PHP in wordpress widget?
- jQuery AJAX call not executing in Plugin
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Add jQuery to WordPress page
- How to use wp-ajax in wp-cron
- Why is my ajax call refreshing the page?
- What’s the point of using WordPress’s built in admin-ajax.php?
- Admin-ajax.php is dying “0” without processing function
- How to create popup same as wordpress popup feature
- How to add pagination to wpbakery grid?
- jQuery function didn’t work in my plugin
- jQuery Plugin to use WordPress functions in AJAX request
- how to include a simple jquery file into a wordpress plugin
- Check if email address exists front end with AJAX in a plugin
- Pass a php string to a javascript variable
- WordPress Ajax Callback
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- WooCommerce get_price returning wrong price when used via ajax
- Shortcode button dosent work for all posts. Work for first post only
- Notepad sticky plugin
- Form isn’t inserting data into database with ajax plugin
- Adding a slider captcha to the comment system
- Error with Image Slide plug-in/ s3slider in WP
- wordpress site | All-in-one-cufon IE Issue
- Using a custom plugin to capture input data via Ajax and PHP
- WordPress function not being called from jQuery method
- Ajax contact form widget plugin data not insert in database
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- How can I inject options into an select tag inside the widget form?
- How to prevent plugins from loading jQuery
- Post Comments with Ajax in WordPress
- how to insert data in wordpress table usnig jquery ajax
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Call plugin with php function
- Does having more than 30 Admin Ajax affects site performance (plugin)?
- Adding media upload button to User Profile page (following a tutorial)
- JQuery prepend a function
- Is there a function to list all uploaded images? How can I add one?
- 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
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Asynchronous request in wordpress
- Api external with wordpress
- Plugin not working locally, but works on server
- Custom meta box with jQuery.sortable custom post type list
- How to include my Ajax calls in one function instead of calling different ones every time?
- Using AJAX to run SQL statement and populate dropdown
- Ajax request sends url rather than data
- Ajax call not working in wordpress through a plugin
- can’t unzip file
- Strange admin-ajax / CSS / $_SESSION issue
- Jquery POST Ajax Return null data in wordpress
- How can I adjust my function so the page editor still loads in the backend?
- WordPress jQuery Post – Amending Variable Value Within Function Command
- Calling PHP function with AJAX
- Cannot pass value variable to WP AJAX functions
- Ajax Call not Working in Plugin
- jQuery Ajax not loading page with ACF fields
- How to get a specific string from a url
- update_post_meta is not working for me when I use e.preventDefault for update button
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- How to use Datatable with Ajax when creating plugin on WordPress?
- How to avoid the 403 Forbidden error in a WP Plugin with Ajax and PHP
- checkout stripe with plugin contact form
- Ajax call to php function doesn’t work PHP code
- Compare Ajax Data Results
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- My ajax request don´t work and return 0
- WordPress environment not loading properly
- Creating new option (add_option) from AJAX – Settings API
- WordPress Feedback popup with date saved into table
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- Not getting result using ajax on wordpress
- WordPress ajax not working in registration
- What is the process for reimplementing a back up WordPress?
- How do I convince this button to do something when it is clicked?
- display user input using ajax in wordpress
- Ajax, jQuery and WordPress
- PHP and Jquery pass value from form. Update function on DataBase
- WordPress plugin ajax post parameter
- Pulling Advanced Custom Fields from other pages
- Response from Php File to Ajax is not getting sent
- Plugin use of ajax/jquery depending dropdown
- Help me with my first very basic plugin
- How do I output user_registered time in my correct timezone?
- Load css classes after using ajax calls
- WordPress portfolio pagination on home page
- Jquery post responses 500 error after some time and lastly an 503 error
- How do I call an action hook into wp_ajax hook callback function