What’s the best way to implement AJAX in WordPress?
The crude alternative most people resort to is the one where you add a file and include several levels up. This is arguably worse for performance if not just as bad. But there is a variant that works better, if we create our own AJAX entrypoint URL, and specify: define( ‘SHORTINIT’,true); Then include the WordPress … Read more