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

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

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

add_action( 'xmlrpc_call_success_wp_newComment', 'wp_kama_xmlrpc_call_success_wp_newComment_action', 10, 2 );

/**
 * Function for `xmlrpc_call_success_wp_newComment` action-hook.
 * 
 * @param int   $comment_ID ID of the new comment.
 * @param array $args       An array of new comment arguments.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_success_wp_newComment_action( $comment_ID, $args ){

	// action...
}
$comment_ID(int)
ID of the new comment.
$args(массив)
An array of new comment arguments.

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

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

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

wp_xmlrpc_server::wp_newComment()
xmlrpc_call_success_wp_newComment
wp-includes/class-wp-xmlrpc-server.php 4010
do_action( 'xmlrpc_call_success_wp_newComment', $comment_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase

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

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