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 |
---|---|
2833 |
|
2834 | if ( !current_user_can( 'edit_comment', $comment_ID ) ) |
2835 | return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) ); |
2836 |
|
2837 | do_action('xmlrpc_call', 'wp.deleteComment'); |
2838 |
|
2839 | $status = wp_delete_comment( $comment_ID ); |
2840 |
|
2841 | if( true == $status ) |
2842 | do_action( 'xmlrpc_call_success_wp_deleteComment', $comment_ID, $args ); |
2843 |
|
2844 | return $status; |
2845 | } |
2846 |
|
2847 | /** |
2848 | * Edit comment. |
2849 | * |
2850 | * Besides the common blog_id, username, and password arguments, it takes a |
2851 | * comment_id integer and a content_struct array as last argument. |