Tagged Questions
-1
votes
2answers
53 views
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:
public function ...
1
vote
1answer
38 views
Create hooks based on an array of hook names?
I have this idea where I would create a class that would take in a set of hook names then create them, for me to use when ever, and where ever.
Currently the way to create a hook is we do something ...
0
votes
1answer
168 views
OOP Plugin: Where should I place the action hooks in the class?
Where in my admin class should I place the action hooks for adding css, scripts and the add menu page?
In the __construct? Or should they be placed in a method?