xmlrpc_call_success_wp_editComment
Action HookDescription
Fires after a comment has been successfully updated via XML-RPC.Hook Information
File Location |
wp-includes/class-wp-xmlrpc-server.php
View on GitHub
|
Hook Type | Action |
Line Number | 3890 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$comment_id
|
ID of the updated comment. |
array
|
$args
|
An array of arguments to update the comment. |
Usage Examples
Basic Usage
<?php
// Hook into xmlrpc_call_success_wp_editComment
add_action('xmlrpc_call_success_wp_editComment', 'my_custom_function', 10, 2);
function my_custom_function($comment_id, $args) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-xmlrpc-server.php:3890
- How this hook is used in WordPress core
<?php
3885 * @since 3.4.0
3886 *
3887 * @param int $comment_id ID of the updated comment.
3888 * @param array $args An array of arguments to update the comment.
3889 */
3890 do_action( 'xmlrpc_call_success_wp_editComment', $comment_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
3891
3892 return true;
3893 }
3894
3895 /**
PHP Documentation
<?php
/**
* Fires after a comment has been successfully updated via XML-RPC.
*
* @since 3.4.0
*
* @param int $comment_id ID of the updated comment.
* @param array $args An array of arguments to update the comment.
*/
Quick Info
- Hook Type: Action
- Parameters: 2
- File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks
Related hooks will be displayed here in future updates.