Hook, Line, and Sinker

We have added the really cool plugin developed by mitcho (Michael Yoshitaka Erlewine) called HookPress. HookPress lets you add webhooks to WordPress, providing an easy way to develop push notifications when various events happen on your blog (like publishing a post for instance).

WebhooksYou can now find this under the Settings Module in the dashboard.

As part of the process of integrating HookPress into WordPress.com we trimmed back some of the features (to ensure it didn’t impact performance or security) while improving other aspects of the plugin, like the management interface. To guide you through the rigs and roles of setting up and developing with this new tool check out the Webhooks support page.

There are currently three actions that you can enable a hook for: comment_post, publish_post, and publish_page. We’ll be adding support for more hooks in the future.

So what does all this mean? Well, for starters this is one of those features targeted at developers. Let’s look at a hypothetical example; say I want to get a text message every time a new comment is submitted to my site. First you need to setup a URL that will accept an HTTP POST request with the comment data and then does all of the heavy lifting of taking that data and shipping it off to your phone in the form of a text message. Then you add a new hook via the Webhooks section of the admin area for the ‘comment_post’ action, selecting which fields you want and the URL that you setup earlier. That’s all there is to it, WordPress.com will automatically send an HTTP POST with the fields you selected to the URL you configured for each comment that is submitted. A contrived example to be sure, but it gives you an idea of what the process looks like.

Another big thank you to mitcho for all his brilliant work on this super cool plugin and look forward to seeing what people do with this!

Missing out on the latest WordPress.com developments? Enter your email below to receive future announcements direct to your inbox. An email confirmation will be sent before you will start receiving notifications - please check your spam folder if you don't receive this.

Join 16,479,781 other followers



Comments are closed.

  1. 便当小兔儿

    interesting, gonna try out now!

  2. Matt

    If you have any hooks in core WordPress you’d really like us to support, please let us know here in the comments.

  3. g s collector

    Another great plugin. Congrats, WordPress!

  4. Angelo Verona

    Add hook for “submit for review” (pending) event and save and draft i definitely need this! thanks for awesome work!

  5. Pingback: Webhooks on WordPress.com @ Joseph Scott
  6. Shrutarshi Basu

    I would really love to be able to sent my post as an html or even plain text file to a Git repo, hosted on Github perhaps. I know this might be a little complicated, but it would be an awesome feature for us hacker-types.

  7. quixoticzephyr

    Thank you mitcho! Seems pretty foolproof even for me, tech-unsavvy as I am.

  8. peacefulone

    If I’m being honest…I don’t understand. But thanks..


    Nice I must say! Though I’m skeptical, if I’ll use it or not.

  10. Car

    wow this sounds way too complicated

  11. AA

    Is this something someone uses with Yahoo Pipes? Honestly, not making any sense until I see a working example.

    • Joseph Scott

      You could create a Yahoo Pipe to be the URL that receives the hook data. Then you could make use of the various pipe features to process it.

  12. Mary

    Super cool :)

  13. Adz

    Just to simplify it a little, can a webhook be compared to a trackback? For example, if I make a post and specify a trackback, WP will send that information to the URL in the trackback.
    Similarly, this webhook would send a notification/data to the URL specified.

    Correct me if I’m wrong.

    • Joseph Scott

      You could think of trackback as a specific, special case webhook. The concept of webhooks is more generalized, simply calling a URL to provide it data when certain events happen. In this case they are WordPress actions, but from the webhook point of view they could be anything.

  14. sylviahubbard1

    OH KAY, i have nooooo idea what this means, but I LOVE WORDPRESS SO MUCH this just makes it even cooler.

  15. sensico

    This is confusing, can a video of how to and the finished product of webhooks be created?

  16. Sara

    Sounds interesting, I have to take a look at it. *bad pun alert* I might become HOOKED on it. :lol:

  17. xentek

    I will definitely make some use of this plugin. Score one for Awesome!


    Honestly, I still confuse this feature.
    It means receive data from other site or send data to other site?

    • Joseph Scott

      This will send data to a URL of your choice, which will then be sent the data each time the specific action happens (like a new comment).

  19. freemasonry

    wow! this is absolutely cool! another plug-in in WP world!

  20. newideatube

    Sweeet!!!! Thank you :)

  21. Amit Singh

    This is just great. I am getting a new idea on ways I can use this almost every minute. Thnx.

  22. sid

    looks promising…..
    another good feature !!!!!

  23. طارق البراج

    i can’t understand it,
    please , i want to know more about this plugin , how i can recieve comments on my mobile ? what i should to type in url field?

    plaese explait in more simply , especialy too many peaople use wordpress in arabic and his blogs in arabic type , so we need someone explain it in arabic

    • Joseph Scott

      This is a feature targeted for developers, to use it you’ll need to be able setup a URL that can accept HTTP POST requests with the data that WordPress provides.

  24. параклис

    One thing that first comes to my mind is: sending an email (to a list of addresses) whenever a post is published (or a page is added/changed). Maybe this is already supported somehow? If not, of course one could subscribe via RSS, but in many cases email would be nicer than RSS.

  25. John Blackbourn

    This is a surprisingly advanced feature for a [free] hosted blog service.

    The barrier of entry to WordPress.com is low, but to set up your own webhook requires web hosting, a working knowledge of a server-side language, how to handle HTTP POST requests, and ultimately how to write something useful with it.

    Maybe a future blog post could highlight some publicly available webhook services that WordPress.com users can use to do interesting things when content is published.

  26. phoxis

    hmm, although i am not going to use this feature soon, but i think i might use it when my blog gets more traffic

  27. leaderstress.com

    Sounds useful, but it could help to have a non-geek paraphrase or link to wp dictionary of terms, or else it may end up as another ‘setting’ that is simply blanked by more right brained users who could potentially benefit from it.

    • Joseph Scott

      This is a feature targeted for developers who want to pass data from events (like a new comment) in WordPress into another system of their own design.

  28. Jennifer

    Wrapping my head around this one for now and may need some suggestions for apps that can use this info.

    (Meantime, I don’t think that Dashboard screenshot was from a COM blog. Just sayin’… :)

  29. shamballa9944

    I’d really like to know more about this Hook plug-in as I’m not really clear on what this “does.”

  30. Preston Guyton - Myrtle Beach Homes

    Cool Tool :) Thank you for this! It really helps and works fine on my blog.

  31. karenstuebing

    I finally found it. Do you have a Webhook for Dummies tutorial? :)

  32. Pingback: Wordpress Webhooks « Ferrari != Ferrari
  33. Michael

    I have created a web app that will let anyone create their own webhook for their WordPress.com blog. Like the example Joseph mentioned in this post, my first webhook simply notifies you via SMS when someone comments on your blog.

    To get your own webhook, visit http://qwiktxt.com/webhook/.

    At that site, you’ll need to register for an account. The site itself is actually powered by WordPress.org install of WordPress, so registering should be familiar to you.

    Once you’ve created an account, your webhook URL will be http://qwiktxt.com/webhook/YOUR_USERNAME. Then you’ll need to follow the instructions on the page I linked to above to setup your webhook on your WordPress.com blog.

    @Joseph Scott – If you get a chance, check out my implementation and let me know what you think. :)

  34. Pingback: Get Comment Notifications on your WordPress.com Blog via a QwikTxt SMS » QwikTxt.com - Send text messages to mobile phones from the web
  35. davebrosso

    I love Word press! You folks keep up the great development!!!

  36. leaderstress.com

    Cheers. There wasn’t quite enough info initially to make sense of its applicability.

  37. Pingback: Top Posts — WordPress.com
  38. admin

    This is just great this new feature gives a lot more flexibility to us users. We can do a lot more now with our blogs at WordPress.com

    Thanks for bringing us this feature.

  39. thcbillies

    Looks pretty neat…going to look into this.

  40. Indian Homemaker

    Not sure I understand much here, let me explore the links :)

  41. manspeaksfire

    I’m sure it will come in handy when I figure this place out.

  42. Pingback: WordPress.com Comment Notifications via SMS « The Occasional Post
  43. Krisu

    i don’t know if I understand the meaning of this plug-in. Or maybe I don’t understand English well enough as a Finnish-speaker. BUT: why should I need this? I already have my e-mail and internet connection in my iPhone and I get my blogs information through my e-mail. I think it’s a waist of time to read the same things also from my text messages. Or please correct me and explain to what this is all about? Why this is “so cool” again?

  44. eavila

    I am new to all of this, but give me a couple of days and I will have it all down.

  45. knight

    When will you guys add tachyon and wormhole generator plugins? I’m also looking forward to phasers. Thank you.

  46. Pingback: A brighter future for WordPress « Abe Diaz’s Blog
  47. Pingback: HookPress プラグインを追加 — ブログ — WordPress.com
  48. Michael Wender

    @Krisu – Something like the comment notification example mentioned in this post would not be useful to you in your case. However, the cool thing about webhooks is that they open the door for third-party developers to build all sorts of apps that work with WordPress.com. Given time, third-party WordPress devs will hopefully come up with all sorts of useful applications for this new feature.

  49. yebogroup

    Just learning to Blog, Yes where have I been. Well there are no real excuses. Time to catch up

  50. connieemeraldeyes

    Interesting. I am still trying to figure out how to do the slide show.

  51. Pingback: Webhooks for Wordpress « Prashant kumar sharma's Blog
  52. brelandkent

    Pretty neat…I’ll have to give that a try :))

  53. ramonakenttravels

    This sounds like a great feature…I am new to WordPress and I am looking forward to becoming familiar with this great writers outlet!!

    Ramona Kent
    Author of Anomar’s Journey

  54. ramonakent

    The more help we can get the better…Thanks so much!!

  55. dbbradle

    Awesome. I’m looking forward to playing with this.

  56. molight

    Love it! Love webhooks. The question now is can we get Oauth subscriptions working?

    For example – bob wants to find out whenever I publish. It would be great if he could use Oauth to register at my public webhooks to say he wants to know…

  57. Leslie Sigal Javorek

    Is there anyway to use webhooks to send the culled data to the blog administrator’s public e-mail address rather than to a website? (I tried to do this by substituting “mailto:myname@myispn.com” in the URL field but got message it was not a valid url.) What I’m trying to achieve is to be able to get an automated report containing the fields title, post-date,post-url, plus the url’s and location text for all links to images, files, and external sites that I’ve embedded in the content area of each post immediately after publishing it.

    And if that is (or in the future) will indeed be possible, It’d be even more wonderful if I could somehow use webhooks to generate and send individual reports for all posts I’ve published in the past: i.e. a one-time action triggered upon enabling that webhook and having it disable itself upon completion of the looped task.

  58. David Rheins

    When will we be able to add Google Adsense to our WP blogs?

  59. JH

    Very cool. I’m gonna check it out.

  60. Anna Miller

    great and perfect.


  61. Moco Scribe

    Lovely….another gizmo to play with!

  62. Pingback: Webhooks for WordPress « Prashant kumar sharma's Blog

Get every new post delivered to your Inbox.

Join 16,479,781 other followers

%d bloggers like this: