xmlrpc_call_success_wp_deleteComment хук-событиеWP 3.4.0

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

Использование

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(массив)
An array of arguments to delete the comment.

Список изменений

С версии 3.4.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.