untrashed_post_comments хук-событие . WP 2.9.0
Fires after comments are restored for a post from the Trash.
Использование
add_action( 'untrashed_post_comments', 'action_function_name_950' ); function action_function_name_950( $post_id ){ // action... }
- $post_id(число)
- Post ID.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
untrashed_post_comments
wp-includes/post.php 3467
do_action( 'untrashed_post_comments', $post_id );