*/ public function loadKeys( array $keys ) { $taxonomies = \WPGraphQL::get_allowed_taxonomies( 'objects' ); if ( empty( $taxonomies ) ) { return []; } $loaded = []; foreach ( $keys as $key ) { if ( isset( $taxonomies[ $key ] ) ) { $loaded[ $key ] = $taxonomies[ $key ]; } else { $loaded[ $key ] = null; } } return $loaded; } }