Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_insert_comment ›

Desde4.7.0
Obsoleton/a
do_action( 'rest_insert_comment', $comment, $request, true )
Parâmetros: (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
Definido em:
Codex:

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





Fonte

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