archive_handling ) { case 'filter_post_content': // Filter the title/excerpt/contents of the restricted items. break; case 'hide': foreach ( $posts as $key => $post ) { if ( in_array( $post->ID, $post_id, true ) ) { unset( $posts[ $key ] ); } } // Update the query's post count. $query->post_count = count( $posts ); // Reset post indexes. $posts = array_values( $posts ); break; } } return $posts; } }