Skip to main content
2 of 2
added 4 characters in body
fuxia
  • 107.1k
  • 38
  • 255
  • 459

You could just use a RewriteRule to your .htaccess above the regular permalink rewrite rules:

RewriteRule ^ajax$ /wp-admin/admin-ajax.php [L]

Now send your AJAX requests to example.com/ajax, and never miss core changes to that file after upgrades.

fuxia
  • 107.1k
  • 38
  • 255
  • 459