davo_comment_created
Fires after a comment is successfully created.
| Parameter | Type | Description |
|---|---|---|
| $comment_id | int | New comment ID. |
| $target_type | string | Target type slug. |
| $target_id | int | Target content ID. |
| $user_id | int | Author user ID. |
add_action( 'davo_comment_created', 'my_action_callback', 10, 4 );
/**
* @param int $comment_id
* @param string $target_type
* @param int $target_id
* @param int $user_id
*/
function my_action_callback( $comment_id, $target_type, $target_id, $user_id ) {
// Your code here.
}src/domains/comments/repository.php:304