A WordPress-centric search engine for devs and theme authors



rest_insert_comment ›

Since4.7.0
Deprecatedn/a
do_action( 'rest_insert_comment', $comment, $request, true )
Parameters: (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
Defined at:
Codex:

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





Source

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