How can I rename the WordPress AJAX URL? [duplicate]
It’s not as hard to solve as one might think… If only all plugins/themes respect best practices. If they do, then all links to admin-ajax.php are generated with admin_url function. And this function has a hook inside, so we can modify the url it returns: // This will change the url for admin-ajax.php to /ajax/ … Read more