# polylang/trunk/src/modules/sitemaps/load.php

Polylang, version trunk. 18 lines.

- Page: https://pluginprobe.com/plugins/polylang/trunk/code/src/modules/sitemaps/load.php
- Raw: https://pluginprobe.com/plugins/polylang/trunk/raw/src/modules/sitemaps/load.php
- Modified: 2026-02-23T14:05:20+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/polylang/trunk/code/src/modules/sitemaps/load.php#L10-L20`.

```php
<?php
/**
 * @package Polylang
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Don't access directly.
}

if ( $polylang->model->has_languages() ) {
	if ( $polylang->links_model instanceof PLL_Links_Abstract_Domain ) {
		$polylang->sitemaps = new PLL_Sitemaps_Domain( $polylang );
	} else {
		$polylang->sitemaps = new PLL_Sitemaps( $polylang );
	}
	$polylang->sitemaps->init();
}

```
