Ivan Gretsky Posted September 21, 2015 Share Posted September 21, 2015 Is there a way to list all hooks attached to an event? Link to comment Share on other sites More sharing options...
LostKobrakai Posted September 21, 2015 Share Posted September 21, 2015 You could certainly get all hooks (see the debug info in the backend) so at least you should be able to filter them down to only a single hook. 1 Link to comment Share on other sites More sharing options...
sforsman Posted September 22, 2015 Share Posted September 22, 2015 If you need this information programmatically, you need to use the object's getHooks() -method. If you want specific hooks, let's say Pages::saveReady, the easiest way is $hooks = wire('pages')->getHooks('saveReady'); 5 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now