hookpress icon indicating copy to clipboard operation
hookpress copied to clipboard

adding other webhooks: what's the preferred way?

Open garubi opened this issue 10 years ago • 1 comments

While the plugin is really super-useful for anything "blog related" it could do really more if we only could add other webhooks. I can see that the "list" of actions and hooks is filterable here https://github.com/mitcho/hookpress/blob/master/hooks.php#L139 and here https://github.com/mitcho/hookpress/blob/master/hooks.php#L243 so we can add more options, but I'm not sure if and how we can then hooks in other plugin parts to manage arguments and so on. Any hint on hooks to be used or other strategies will be useful. I can then work to make a pull request to address this

Stefano

garubi avatar Nov 05 '15 12:11 garubi

The filters there are used to add new webhooks for WordPress actions and filters, respectively. The pattern is hook_name => array(...) where the array is the list of arguments used by the hook.

mitcho avatar Nov 06 '15 08:11 mitcho