comment_duplicate_trigger
Fires immediately after a duplicate comment is detected.
Usage
add_action( 'comment_duplicate_trigger', 'wp_kama_comment_duplicate_trigger_action' ); /** * Function for `comment_duplicate_trigger` action-hook. * * @param array $commentdata Comment data. * * @return void */ function wp_kama_comment_duplicate_trigger_action( $commentdata ){ // action... }
- $commentdata(array)
- Comment data.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
comment_duplicate_trigger
wp-includes/comment.php 699
do_action( 'comment_duplicate_trigger', $commentdata );