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