Action hook 'xmlrpc_call_success_wp_deleteComment'

in WP Core File wp-includes/class-wp-xmlrpc-server.php at line 3777

View Source

xmlrpc_call_success_wp_deleteComment

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

Hook Information

File Location wp-includes/class-wp-xmlrpc-server.php View on GitHub
Hook Type Action
Line Number 3777

Hook Parameters

Type Name Description
int $comment_id ID of the deleted comment.
array $args An array of arguments to delete the comment.

Usage Examples

Basic Usage
<?php
// Hook into xmlrpc_call_success_wp_deleteComment
add_action('xmlrpc_call_success_wp_deleteComment', 'my_custom_function', 10, 2);

function my_custom_function($comment_id, $args) {
    // Your custom code here
}

Source Code Context

wp-includes/class-wp-xmlrpc-server.php:3777 - How this hook is used in WordPress core
<?php
3772  			 * @since 3.4.0
3773  			 *
3774  			 * @param int   $comment_id ID of the deleted comment.
3775  			 * @param array $args       An array of arguments to delete the comment.
3776  			 */
3777  			do_action( 'xmlrpc_call_success_wp_deleteComment', $comment_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
3778  		}
3779  
3780  		return $status;
3781  	}
3782  

PHP Documentation

<?php
/**
			 * Fires after a comment has been successfully deleted via XML-RPC.
			 *
			 * @since 3.4.0
			 *
			 * @param int   $comment_id ID of the deleted comment.
			 * @param array $args       An array of arguments to delete the comment.
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks

Related hooks will be displayed here in future updates.