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

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

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

add_action( 'xmlrpc_call_success_wp_editComment', 'wp_kama_xmlrpc_call_success_wp_editComment_action', 10, 2 );

/**
 * Function for `xmlrpc_call_success_wp_editComment` action-hook.
 * 
 * @param int   $comment_ID ID of the updated comment.
 * @param array $args       An array of arguments to update the comment.
 *
 * @return void
 */
function wp_kama_xmlrpc_call_success_wp_editComment_action( $comment_ID, $args ){

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

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

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

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

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

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

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