xmlrpc_call_success_wp_newComment action-hook . WP 3.4.0
Fires after a new comment has been successfully created via XML-RPC.
Usage
add_action( 'xmlrpc_call_success_wp_newComment', 'action_function_name_8930', 10, 2 ); function action_function_name_8930( $comment_ID, $args ){ // action... }
- $comment_ID(int)
- ID of the new comment.
- $args(array)
- An array of new comment arguments.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-xmlrpc-server.php 3964
do_action( 'xmlrpc_call_success_wp_newComment', $comment_ID, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase