Jump to content
Ivan Gretsky

Get all hooks attached to an event

Recommended Posts

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.

  • Like 1

Share this post


Link to post
Share on other sites

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');
  • Like 5

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...