comment_reply_to_unapproved_comment
Fires when a comment reply is attempted to an unapproved comment.
Использование
add_action( 'comment_reply_to_unapproved_comment', 'wp_kama_comment_reply_to_unapproved_action', 10, 2 ); /** * Function for `comment_reply_to_unapproved_comment` action-hook. * * @param int $comment_post_id Post ID. * @param int $comment_parent Parent comment ID. * * @return void */ function wp_kama_comment_reply_to_unapproved_action( $comment_post_id, $comment_parent ){ // action... }
- $comment_post_id(int)
- Post ID.
- $comment_parent(int)
- Parent comment ID.
Список изменений
С версии 6.2.0 | Введена. |
Где вызывается хук
comment_reply_to_unapproved_comment
wp-includes/comment.php 3532
do_action( 'comment_reply_to_unapproved_comment', $comment_post_id, $comment_parent );