WordPress开发者和主题制作者的搜索引擎



rest_insert_comment ›

Since4.7.0
已弃用n/a
do_action( 'rest_insert_comment', $comment, $request, true )
参数: (3)
  • (WP_Comment) $comment Inserted or updated comment object.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
  • (bool) $creating True when creating a comment, false when updating.
    Required: Yes
定义在:
文档:

Fires after a comment is created or updated via the REST API.





源码

do_action( 'rest_insert_comment', $comment, $request, true );