summaryrefslogtreecommitdiff
blob: 8122b91db7a4a3542891c769e179c13a0f63a90e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Module Name: Sitemaps
 * Module Description: Creates sitemaps to allow your site to be easily indexed by search engines.
 * Sort Order: 13
 * First Introduced: 3.9
 * Requires Connection: No
 * Auto Activate: Public
 * Module Tags: Recommended, Traffic
 * Additional Search Queries: sitemap, traffic, search, site map, seo
 */

/**
 * Check site privacy before activating sitemaps.
 *
 * @module sitemaps
 */
function jetpack_sitemaps_activate() {
	Jetpack::check_privacy( __FILE__ );
}

add_action( 'jetpack_activate_module_sitemaps', 'jetpack_sitemaps_activate' );

if ( '1' == get_option( 'blog_public' ) ) {
	include_once 'sitemaps/sitemaps.php';
}