# wordpress-seo/18.8/inc/sitemaps/interface-sitemap-provider.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 18.8. 42 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.8/code/inc/sitemaps/interface-sitemap-provider.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.8/raw/inc/sitemaps/interface-sitemap-provider.php
- Modified: 2021-05-18T13:42:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/18.8/code/inc/sitemaps/interface-sitemap-provider.php#L10-L20`.

```php
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\XML_Sitemaps
 */

/**
 * Sitemap Provider interface.
 */
interface WPSEO_Sitemap_Provider {

	/**
	 * Check if provider supports given item type.
	 *
	 * @param string $type Type string to check for.
	 *
	 * @return bool
	 */
	public function handles_type( $type );

	/**
	 * Get set of sitemaps index link data.
	 *
	 * @param int $max_entries Entries per sitemap.
	 *
	 * @return array
	 */
	public function get_index_links( $max_entries );

	/**
	 * Get set of sitemap link data.
	 *
	 * @param string $type         Sitemap type.
	 * @param int    $max_entries  Entries per sitemap.
	 * @param int    $current_page Current page of the sitemap.
	 *
	 * @return array
	 */
	public function get_sitemap_links( $type, $max_entries, $current_page );
}

```
