xmlrpc_call_success_wp_deleteComment action-hookWP 3.4.0

Fires after a comment has been successfully deleted via XML-RPC.

Usage

add_action( 'xmlrpc_call_success_wp_deleteComment', 'wp_kama_xmlrpc_call_success_wp_deleteComment_action', 10, 2 );

/**
 * Function for `xmlrpc_call_success_wp_deleteComment` action-hook.
 * 
 * @param int   $comment_id ID of the deleted comment.
 * @param array $args       An array of arguments to delete the comment.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_success_wp_deleteComment_action( $comment_id, $args ){

	// action...
}
$comment_id(int)
ID of the deleted comment.
$args(array)
An array of arguments to delete the comment.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

wp_xmlrpc_server::wp_deleteComment()
xmlrpc_call_success_wp_deleteComment
wp-includes/class-wp-xmlrpc-server.php 3766
do_action( 'xmlrpc_call_success_wp_deleteComment', $comment_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase

Where the hook is used in WordPress

Usage not found.