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', 'action_function_name_9274', 10, 2 ); function action_function_name_9274( $comment_ID, $args ){ // action... }
- $comment_ID(число)
- ID of the new comment.
- $args(массив)
- An array of new comment arguments.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
wp-includes/class-wp-xmlrpc-server.php 3967
do_action( 'xmlrpc_call_success_wp_newComment', $comment_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase