AJAX in WordPress, sending coords data to MySQL and show after into map
You can’t and shouldn’t directly ping any PHP file inside your theme or plugin folder. It’s not safe, and most importantly, will almost never work since you don’t have access to WordPress’s core. Instead, create an Admin-Ajax handler and process your code there. To create one, all you have to do is add these lines … Read more