WordPress at a glance
function is not described

WP_Sitemaps::register_sitemaps() public WP 5.5.0

Registers and sets up the functionality for all supported sitemaps.

{} It's a method of the class: WP_Sitemaps{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_Sitemaps = new WP_Sitemaps();
$WP_Sitemaps->register_sitemaps();

Changelog

Since 5.5.0 Introduced.

Code of WP_Sitemaps::register_sitemaps() WP 5.5.1

<?php
public function register_sitemaps() {
	$providers = array(
		'posts'      => new WP_Sitemaps_Posts(),
		'taxonomies' => new WP_Sitemaps_Taxonomies(),
		'users'      => new WP_Sitemaps_Users(),
	);

	/* @var WP_Sitemaps_Provider $provider */
	foreach ( $providers as $name => $provider ) {
		$this->registry->add_provider( $name, $provider );
	}
}