src/Entities/Taxonomy.php
public function adminColumnFilter()
    {
        global $typenow, $wp_query;

        if (in_array($typenow, $this->postType)) {
            wp_dropdown_categories([
                'show_option_all' => sprintf(__('Show all %s', 'cuztom'), $this->plural),
                'taxonomy'        => $this->name,
                'name'            => $this->name,
                'orderby'         => 'name',
                'selected'        => isset($wp_query->query[$this->name]) ? $wp_query->query[$this->name] : '',
                'hierarchical'    => true,
                'show_count'      => true,
                'hide_empty'      => true,
            ]);
        }
    }
public function adminColumnFilter()
    {
        global $typenow, $wp_query;

        if (in_array($typenow, $this->postType)) {
            wp_dropdown_categories([
                'show_option_all' => sprintf(__('Show all %s', 'cuztom'), $this->plural),
                'taxonomy'        => $this->name,
                'name'            => $this->name,
                'orderby'         => 'name',
                'selected'        => isset($wp_query->query[$this->name]) ? $wp_query->query[$this->name] : '',
                'hierarchical'    => true,
                'show_count'      => true,
                'hide_empty'      => true,
            ]);
        }
    }
public function adminColumnFilter ( ) { global $ typenow , $ wp_query ; if ( in_array ( $ typenow , $ this -> postType ) ) { wp_dropdown_categories ( [ 'show_option_all' => sprintf ( __ ( 'Show all %s' , 'cuztom' ) , $ this -> plural ) , 'taxonomy' => $ this -> name , 'name' => $ this -> name , 'orderby' => 'name' , 'selected' => isset ( $ wp_query -> query [ $ this -> name ] ) ? $ wp_query -> query [ $ this -> name ] : '' , 'hierarchical' => true , 'show_count' => true , 'hide_empty' => true , ] ) ; } }
Adds a filter to the post table filters.

@return void
Adds a filter to the post table filters .