Processing ajax call to php to insert into mysql database
When doing AJAX call in WordPress, you should always post to admin-ajax.php file. Here’s how you do that. In your plugin or functions.php: function process_my_ajax_call() { // Do your processing here (save to database etc.) // All WP API functions are available for you here } // This will allow not logged in users to … Read more