PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 7.2.1
Jetpack – WP Security, Backup, Speed, & Growth v7.2.1
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / modules / sitemaps.php
sitemaps.php
43 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Module Name: Sitemaps
4 * Module Description: Make it easy for search engines to find your site.
5 * Sort Order: 13
6 * First Introduced: 3.9
7 * Requires Connection: No
8 * Auto Activate: Public
9 * Module Tags: Recommended, Traffic
10 * Feature: Recommended
11 * Additional Search Queries: sitemap, traffic, search, site map, seo
12 *
13 * @package Jetpack
14 */
15
16 /**
17 * Disable direct access and execution.
18 */
19 if ( ! defined( 'ABSPATH' ) ) {
20 exit;
21 }
22
23 if ( '1' == get_option( 'blog_public' ) ) { // loose comparison okay.
24 include_once 'sitemaps/sitemaps.php';
25 }
26
27 add_action( 'jetpack_activate_module_sitemaps', 'jetpack_sitemap_on_activate' );
28
29 /**
30 * Run when Sitemaps module is activated.
31 *
32 * @since 4.8.0
33 */
34 function jetpack_sitemap_on_activate() {
35 wp_clear_scheduled_hook( 'jp_sitemap_cron_hook' );
36 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-constants.php';
37 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-buffer.php';
38 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-stylist.php';
39 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-librarian.php';
40 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-finder.php';
41 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-builder.php';
42 }
43