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