Wordpress 钩子:rest_delete_comment
文章目录
通过REST API删除注释后触发。
原型
do_action( 'rest_delete_comment', WP_Comment $comment, WP_REST_Response $response, WP_REST_Request $request )
参数
$comment
(WP_Comment)
删除的评论数据。
$response
(WP_REST_Response)
API返回的响应。
$request
(WP_REST_Request)
请求发送到API。
源文件
路径:wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/rest_delete_comment/
文章作者 iBllex
上次更新 2019-02-17