xmlrpc_call_success_wp_editComment
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 | Введена. |
Где вызывается хук
xmlrpc_call_success_wp_editComment
wp-includes/class-wp-xmlrpc-server.php 3878
do_action( 'xmlrpc_call_success_wp_editComment', $comment_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase