admin-ajax.php not working properly on subdomains
Don’t bother with the complicated cookie/ajax nonsense, use a REST API! We’ll use dependency injection and RESTful APIs to remove the cookies and simplify your AJAX code. First things first, lets turn this into a REST API: class Stuff { public function __construct() { add_action( ‘rest_api_init’, function () { register_rest_route( ‘soothsayer/v1’, ‘/current_rate/’, array( ‘methods’ => … Read more