comment_duplicate_trigger
Action HookDescription
Fires immediately after a duplicate comment is detected.Hook Information
File Location |
wp-includes/comment.php
View on GitHub
|
Hook Type | Action |
Line Number | 731 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$commentdata
|
Comment data. |
Usage Examples
Basic Usage
<?php
// Hook into comment_duplicate_trigger
add_action('comment_duplicate_trigger', 'my_custom_function', 10, 1);
function my_custom_function($commentdata) {
// Your custom code here
}
Source Code Context
wp-includes/comment.php:731
- How this hook is used in WordPress core
<?php
726 *
727 * @since 3.0.0
728 *
729 * @param array $commentdata Comment data.
730 */
731 do_action( 'comment_duplicate_trigger', $commentdata );
732
733 /**
734 * Filters duplicate comment error message.
735 *
736 * @since 5.2.0
PHP Documentation
<?php
/**
* Fires immediately after a duplicate comment is detected.
*
* @since 3.0.0
*
* @param array $commentdata Comment data.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/comment.php
Related Hooks
Related hooks will be displayed here in future updates.