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