Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding other webhooks: what's the preferred way? #11

Open
garubi opened this issue Nov 5, 2015 · 1 comment
Open

adding other webhooks: what's the preferred way? #11

garubi opened this issue Nov 5, 2015 · 1 comment

Comments

@garubi
Copy link

garubi commented Nov 5, 2015

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

@mitcho
Copy link
Owner

mitcho commented Nov 6, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants