Webhooks for WordPress

by Prashant Kumar Sharma

Hook, Line, and Sinker – Indeed !

webhooks_wordpress

Webhooks WordPress Illustration

This week, on 14th April 2010,  WordPress.com announced the addition of webhooks as a new feature for WordPress.com blogs.

So what it does, it lets you add webhooks to WordPress, duh !

IT actually provides an easy way to develop push notifications when various events happen on your blog (like publishing a post or new comment for instance).

Simply put, Push Notification = HTTP POST (triggered by some action). It can be used to get data from actions that occur on a blog (like when a new comment is submitted).

You can now find this under the Settings Module in the dashboard.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.

Possible Actions/Fields

Action Description Fields
comment_post Runs just after a comment is saved in the database comment_ID, comment_agent, comment_approved, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_content, comment_date, comment_date_gmt, comment_karma, comment_parent, comment_post_ID, comment_type, user_id
publish_page Runs when a page is published, or if it is edited and its status is “published” ID, comment_count, comment_status, guid, menu_order, ping_status, pinged, post_author, post_category, post_content, post_content_filtered, post_date, post_date_gmt, post_excerpt, post_mime_type, post_modified, post_modified_gmt, post_name, post_parent, post_password, post_status, post_title, post_type, post_url, to_ping
publish_post Runs when a post is published, or if it is edited and its status is “published” ID, comment_count, comment_status, guid, menu_order, ping_status, pinged, post_author, post_category, post_content, post_content_filtered, post_date, post_date_gmt, post_excerpt, post_mime_type, post_modified, post_modified_gmt, post_name, post_parent, post_password, post_status, post_title, post_type, post_url, to_ping
webhooks_wordpress_illustration_2

Webhooks WordPress Illustration 2

Possible Actions/Fields

Action Description Fields
comment_post Runs just after a comment is saved in the database comment_ID, comment_agent, comment_approved, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_content, comment_date, comment_date_gmt, comment_karma, comment_parent, comment_post_ID, comment_type, user_id
publish_page Runs when a page is published, or if it is edited and its status is “published” ID, comment_count, comment_status, guid, menu_order, ping_status, pinged, post_author, post_category, post_content, post_content_filtered, post_date, post_date_gmt, post_excerpt, post_mime_type, post_modified, post_modified_gmt, post_name, post_parent, post_password, post_status, post_title, post_type, post_url, to_ping
publish_post Runs when a post is published, or if it is edited and its status is “published” ID, comment_count, comment_status, guid, menu_order, ping_status, pinged, post_author, post_category, post_content, post_content_filtered, post_date, post_date_gmt, post_excerpt, post_mime_type, post_modified, post_modified_gmt, post_name, post_parent, post_password, post_status, post_title, post_type, post_url, to_ping
Advertisements

2 Comments to “Webhooks for WordPress”

  1. On the internet none of this is there

  2. vnjUGO hvxpardtxwzk, [url=htt p://slpxop aigljl.com/]slpxopaigljl[/url], [link= http : //zpafsvqnndge.com/]zpafsvq nndge[/link], htt p://fvozpd pokrzk.com/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: