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