comment_closed
Fires when a comment is attempted on a post that has comments closed.
Использование
add_action( 'comment_closed', 'wp_kama_comment_closed_action' ); /** * Function for `comment_closed` action-hook. * * @param int $comment_post_id Post ID. * * @return void */ function wp_kama_comment_closed_action( $comment_post_id ){ // action... }
- $comment_post_id(int)
- Post ID.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
comment_closed
wp-includes/comment.php 3573
do_action( 'comment_closed', $comment_post_id );