Usually I hook all my custom plugins code with the template_redirect
hook but one of the issue I encountered is it does not work for the ajax call.
So if I want to target both standard calls and ajax call what hook should I use?
Is wp_loaded
a good choice?