=== HookPress === Contributors: mitchoyoshitaka, automattic Author: mitcho (Michael Yoshitaka Erlewine) Author URI: http://mitcho.com/ Plugin URI: http://mitcho.com/code/ Donate link: http://tinyurl.com/donatetomitcho Tags: hook, filter, action, plugin, webhook, webhooks, notification, internal Requires at least: 3.6 Tested up to: 4.1 Stable tag: 1.14
HookPress turns your WordPress-internal hooks into webhooks. Possible uses include generating push notifications or extending WordPress with non-PHP.
== Description ==
Webhooks are a simple paradigm for developing instant notifications and mashups based on simple HTTP requests. With HookPress you can set up webhooks so that a specified URL (a public service or something you set up) is requested when certain WordPress actions occur. Possible uses include generating push notifications or using non-PHP web technology to extend WordPress.
[vimeo 5905102] A tutorial video is available on WordPress.tv.
To learn about the various hooks WordPress provides, please consult the WordPress Plugin API's Action Reference and Filter Reference. Not all hooks are supported yet, but more are in the works.
To learn more about webhooks, take a look at the wikipedia page and also The Pushbutton Web by Anil Dash. Webhooks champion Jeff Lindsay's excellent slides are a particularly good place to start.
To write and host a target script The easiest option is to set up a script on your own server to catch POST requests and act on them. Requestbin is a nice, free service which will host an endpoint, collect all requests, and let you inspect them, which is a great way to test requests generated by your webhooks. There is also a PHP script which does a simple version of this, test.php
, included with HookPress.
== Installation ==
Upload the HookPress plugin to your blog's wp-content/plugins/
directory and activate. In the admin section, go to Settings > Webhooks to add new webhooks.
== Frequently Asked Questions ==
If you have a feature request or question, please use the HookPress support forum.
= How does HookPress affect performance? =
HookPress currently makes requests synchronously so can measurably affect performance. I highly recommend using a caching plugin such as WP-SuperCache to stem the performance hit. If your filters' results are time-sensitive or dependent on external data sources as well, make sure to set an appropriate cache expiration time.
== Changelog ==
= 1.14 =
test.php
, now no longer bundled as a .php
= 1.13 =
test.php
.= 1.12 =
= 0.1.11 =
wp_remote_post()
instead. Note that the HTTP referer may no longer be sent correctly.hookpress_request
filter.save_pre
test.php
to return first parameter (to trivially support filters)
= 0.1.2 =post_url
fieldparent_*
post fields for save_post
which are sent in case the post is a revision of a previous draft.= Future plans =
If you have a feature request or question, please use the HookPress support forum.