WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
3591 |
|
3592 | if ( !current_user_can('delete_post', $post_ID) ) |
3593 | return new IXR_Error(401, __('Sorry, you do not have the right to delete this post.')); |
3594 |
|
3595 | $result = wp_delete_post($post_ID); |
3596 |
|
3597 | if ( !$result ) |
3598 | return new IXR_Error(500, __('For some strange yet very annoying reason, this post could not be deleted.')); |
3599 |
|
3600 | do_action( 'xmlrpc_call_success_blogger_deletePost', $post_ID, $args ); |
3601 |
|
3602 | return true; |
3603 | } |
3604 |
|
3605 | /* MetaWeblog API functions |
3606 | * specs on wherever Dave Winer wants them to be |
3607 | */ |
3608 |
|
3609 | /** |