xmlrpc_call_success_wp_editComment
云策文档标注
概述
xmlrpc_call_success_wp_editComment 是一个 WordPress 动作钩子,在通过 XML-RPC 成功更新评论后触发。它允许开发者在评论更新后执行自定义操作。
关键要点
- 触发时机:在通过 XML-RPC 成功更新评论后立即触发。
- 参数:$comment_id(整数,更新评论的 ID)和 $args(数组,更新评论的参数数组)。
- 相关函数:与 wp_xmlrpc_server::wp_editComment() 方法关联,用于编辑评论。
- 版本历史:自 WordPress 3.4.0 版本引入。
原文内容
Fires after a comment has been successfully updated via XML-RPC.
Parameters
$comment_idint-
ID of the updated comment.
$argsarray-
An array of arguments to update the comment.
Source
do_action( 'xmlrpc_call_success_wp_editComment', $comment_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |