Hooks are not executing
Based on my understanding of hooks, you create a hook, by doing do_action(‘hook_name’); then add something to said hook and call the method where you want it to do the hook, so:
Based on my understanding of hooks, you create a hook, by doing do_action(‘hook_name’); then add something to said hook and call the method where you want it to do the hook, so:
At the moment I have an ajax that works (I get a success [200] response), but having an issue with the action hooks on the response. The JSON object is not coming back, instead I’m getting a 0.
Let’s say this was in my plugin:
In many themes I’ve seen (including TwentyEleven) and in the examples I’ve found online, when building the functions.php file for a theme all functionality is declared in a global scope. To clarify, this is what a typical functions file looks like:
I’d like to get a menu object from its theme location argument.