comment_on_trash хук-событие . WP 2.9.0
Fires when a comment is attempted on a trashed post.
Использование
add_action( 'comment_on_trash', 'action_function_name_1044' ); function action_function_name_1044( $comment_post_ID ){ // action... }
- $comment_post_ID(число)
- Post ID.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
comment_on_trash
wp-includes/comment.php 3449
do_action( 'comment_on_trash', $comment_post_ID );