wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_insert_comment › WordPress Action Hooks

Since2.8.0
Deprecatedn/a
do_action( 'wp_insert_comment', $id, $comment )
Parameters: (2)
  • (int) $id The comment ID.
    Required: Yes
  • (WP_Comment) $comment Comment object.
    Required: Yes
Defined at:
Codex:

Fires immediately after a comment is inserted into the database.





Source

do_action( 'wp_insert_comment', $id, $comment );