Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: xmlrpc_call_success_wp_deleteComment

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
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.