comment_reply_to_unapproved_comment
comment_reply_to_unapproved_comment
Appears in: wordpress-6.2, wordpress-6.2.1, wordpress-6.2.2, wordpress-6.3, wordpress-6.3.1, wordpress-6.3.2, wordpress-6.4, wordpress-6.4.1, wordpress-6.4.2, wordpress-6.4.3, wordpress-6.5, wordpress-6.5.2, wordpress-6.5.3, wordpress-6.5.4, wordpress-6.5.5, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7, wordpress-6.7.1, wordpress-6.7.2
Hook Type: action
Displaying hooks found in version: wordpress-6.7.2do_action('comment_reply_to_unapproved_comment') is found 1 times:
- /wp-includes/comment.php line 353235283529353035313532353335343535353635373538
*
* @param int
$comment_post_id
Post ID.
* @param int
$comment_parent
Parent comment ID.
*/
do_action(
'comment_reply_to_unapproved_comment'
,
$comment_post_id
,
$comment_parent
);
return
new
WP_Error(
'comment_reply_to_unapproved_comment'
, __(
'Sorry, replies to unapproved comments are not allowed.'
), 403 );
}
}
$post
= get_post(
$comment_post_id
);