What’s the latest I can hook into wp_ajax_%?
There seems to be a big misunderstanding here about how hooks work, and how AJAX works. The reason that you can’t hook into AJAX in footer.php is because footer.php is not loaded during an AJAX request. No templates are. When you run add_action() you are scheduling a given function to fire when that action is … Read more