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