WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Sitemaps_Provider::get_sitemap_entries() public WP 5.5.0

Lists sitemap pages exposed by this provider.

The returned data is used to populate the sitemap entries of the index.

Это метод класса: WP_Sitemaps_Provider{}

Хуки из метода
Возвращает

Массив[]. Array of sitemap entries.

Использование

$WP_Sitemaps_Provider = new WP_Sitemaps_Provider();
$WP_Sitemaps_Provider->get_sitemap_entries();

Список изменений

С версии 5.5.0 Введена.

Код WP_Sitemaps_Provider::get_sitemap_entries() WP 5.5.1

wp-includes/sitemaps/class-wp-sitemaps-provider.php
<?php
public function get_sitemap_entries() {
	$sitemaps = array();

	$sitemap_types = $this->get_sitemap_type_data();

	foreach ( $sitemap_types as $type ) {
		for ( $page = 1; $page <= $type['pages']; $page ++ ) {
			$sitemap_entry = array(
				'loc' => $this->get_sitemap_url( $type['name'], $page ),
			);

			/**
			 * Filters the sitemap entry for the sitemap index.
			 *
			 * @since 5.5.0
			 *
			 * @param array  $sitemap_entry  Sitemap entry for the post.
			 * @param string $object_type    Object empty name.
			 * @param string $object_subtype Object subtype name.
			 *                               Empty string if the object type does not support subtypes.
			 * @param int    $page           Page number of results.
			 */
			$sitemap_entry = apply_filters( 'wp_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page );

			$sitemaps[] = $sitemap_entry;
		}
	}

	return $sitemaps;
}