| 326 | $taxonomies = get_object_taxonomies( $this->screen->post_type, 'objects' ); |
| 327 | $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_filter' => true ), 'and', 'name' ); |
| 328 | |
| 329 | foreach ( $taxonomies as $taxonomy ) { |
| 330 | $taxonomy = get_taxonomy( $taxonomy ); |
| 331 | $dropdown_options = array( |
| 332 | 'show_option_all' => $taxonomy->labels->all_items, |
| 333 | 'taxonomy' => $taxonomy->name, |
| 334 | 'name' => $taxonomy->query_var, |
| 335 | 'hide_empty' => 0, |
| 336 | 'hierarchical' => $taxonomy->hierarchical, |
| 337 | 'show_count' => 0, |
| 338 | 'orderby' => 'name', |
| 339 | 'selected' => get_query_var( $taxonomy->query_var ), |
| 340 | 'value_field' => 'slug' |
| 341 | ); |
| 342 | |
| 343 | echo '<label class="screen-reader-text" for="' . $taxonomy->query_var . '">' . sprintf( __( 'Filter by %s' ), $taxonomy->labels->singular_name ) . '</label>'; |
| 344 | wp_dropdown_categories( $dropdown_options ); |
| 345 | } |
| 346 | |