trash_post_comments, $post_id
trash_post_comments, $post_id
Appears in: 7.0.3
Hook Type: action
Displaying hooks found in version: 7.0.3do_action('trash_post_comments, $post_id') is found 1 times:
- /wp-includes/post.php line 4208
* @since 2.9.0 * * @param int $post_id Post ID. */ do_action( 'trash_post_comments', $post_id ); $comments = $wpdb->get_results( $wpdb->prepare( "SELECT comment_ID, comment_approved FROM $wpdb->comments WHERE comment_post_ID = %d", $post_id ) ); if ( ! $comments ) { return; }