From c4a79bf9fb736081b06f2cf5e83ae0b388b05c07 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Mon, 9 Mar 2009 22:17:56 +0000 Subject: [PATCH] Add hooks to allow plugins to extend AtomPub support. Fixes #8827 props znarfor and josephscott. git-svn-id: https://develop.svn.wordpress.org/trunk@10750 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-app.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-app.php b/wp-app.php index ac70dba618..c791c4e71b 100644 --- a/wp-app.php +++ b/wp-app.php @@ -478,6 +478,8 @@ EOD; // this could affect our ability to send back the right headers @wp_set_post_categories($postID, $post_category); + do_action( 'atompub_create_post', $postID, $entry ); + $output = $this->get_entry($postID); log_app('function',"create_post($postID)"); @@ -556,6 +558,8 @@ EOD; $this->internal_error(__('For some strange yet very annoying reason, this post could not be edited.')); } + do_action( 'atompub_put_post', $ID, $parsed ); + log_app('function',"put_post($postID)"); $this->ok(); }