Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: xmlrpc_call_success_blogger_deletePost

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3990
3991           if ( !current_user_can('delete_post', $post_ID) )
3992                return new IXR_Error(401, __('Sorry, you do not have the right to delete this post.'));
3993
3994           $result = wp_delete_post($post_ID);
3995
3996           if ( !$result )
3997                return new IXR_Error(500, __('For some strange yet very annoying reason, this post could not be deleted.'));
3998
3999           do_action( 'xmlrpc_call_success_blogger_deletePost', $post_ID, $args );
4000
4001           return true;
4002      }
4003
4004      /* MetaWeblog API functions
4005       * specs on wherever Dave Winer wants them to be
4006       */
4007
4008      /**