if ( null !==
$url_list ) { return $url_list;
} $url_list = array
();
// Offset by how many terms should be included in previous pages.
$offset =
( $page_num - 1
) *
wp_sitemaps_get_max_urls( $this->object_type
);
$args =
$this->
get_taxonomies_query_args( $taxonomy );
$args['fields'
] = 'all';
$args['offset'
] =
$offset;
$taxonomy_terms =
new WP_Term_Query( $args );
if ( !
empty( $taxonomy_terms->terms
) ) { foreach ( $taxonomy_terms->terms
as $term ) { $term_link =
get_term_link( $term,
$taxonomy );
if ( is_wp_error( $term_link ) ) { continue;
}