UrlToQueryItem.php
private function setCptQueryVars() {
        foreach ( get_post_types( [ ], 'objects' ) as $post_type => $t ) {
            if ( $t->query_var ) $this->post_type_query_vars[$t->query_var] = $post_type;
        }
    }
private function setCptQueryVars() {
        foreach ( get_post_types( [ ], 'objects' ) as $post_type => $t ) {
            if ( $t->query_var ) $this->post_type_query_vars[$t->query_var] = $post_type;
        }
    }
private function setCptQueryVars ( ) { foreach ( get_post_types ( [ ] , 'objects' ) as $ post_type => $ t ) { if ( $ t -> query_var ) $ this -> post_type_query_vars [ $ t -> query_var ] = $ post_type ; } }
Store all the query rewrite slugs for all registered post types
Store all the query rewrite slugs for all registered post types