wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_insert_comment › WordPress Action Hooks

Seit4.7.0
Veraltetn/v
do_action( 'rest_insert_comment', $comment, $request, true )
Parameter: (3)
  • (WP_Comment) $comment Inserted or updated comment object.
    Erforderlich: Ja
  • (WP_REST_Request) $request Request object.
    Erforderlich: Ja
  • (bool) $creating True when creating a comment, false when updating.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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