Title: comment_reply_to_unapproved_comment
Published: March 29, 2023
Last modified: May 20, 2026

---

# do_action( ‘comment_reply_to_unapproved_comment’, int $comment_post_id, int $comment_parent )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/comment_reply_to_unapproved_comment/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/comment_reply_to_unapproved_comment/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/comment_reply_to_unapproved_comment/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/comment_reply_to_unapproved_comment/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/comment_reply_to_unapproved_comment/?output_format=md#wp--skip-link--target)

Fires when a comment reply is attempted to an unapproved comment.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/comment_reply_to_unapproved_comment/?output_format=md#parameters)󠁿

 `$comment_post_id`int

Post ID.

`$comment_parent`int

Parent comment ID.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/comment_reply_to_unapproved_comment/?output_format=md#source)󠁿

    ```php
    do_action( 'comment_reply_to_unapproved_comment', $comment_post_id, $comment_parent );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/comment.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/comment.php#L3641)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/comment.php#L3641-L3641)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/comment_reply_to_unapproved_comment/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_handle_comment_submission()](https://developer.wordpress.org/reference/functions/wp_handle_comment_submission/)`wp-includes/comment.php` |

Handles the submission of a comment, usually posted to wp-comments-post.php via a comment form.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/comment_reply_to_unapproved_comment/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.2.0](https://developer.wordpress.org/reference/since/6.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcomment_reply_to_unapproved_comment%2F)
before being able to contribute a note or feedback.