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