PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 7.1
Jetpack – WP Security, Backup, Speed, & Growth v7.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 in Jetpack – WP Security, Backup, Speed, & Growth 7.1, at modules/sitemaps.php

42 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 * Additional Search Queries: sitemap, traffic, search, site map, seo
11 *
12 * @package Jetpack
13 */
14
15 /**
16 * Disable direct access and execution.
17 */
18 if ( ! defined( 'ABSPATH' ) ) {
19 exit;
20 }
21
22 if ( '1' == get_option( 'blog_public' ) ) { // loose comparison okay.
23 include_once 'sitemaps/sitemaps.php';
24 }
25
26 add_action( 'jetpack_activate_module_sitemaps', 'jetpack_sitemap_on_activate' );
27
28 /**
29 * Run when Sitemaps module is activated.
30 *
31 * @since 4.8.0
32 */
33 function jetpack_sitemap_on_activate() {
34 wp_clear_scheduled_hook( 'jp_sitemap_cron_hook' );
35 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-constants.php';
36 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-buffer.php';
37 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-stylist.php';
38 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-librarian.php';
39 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-finder.php';
40 require_once dirname( __FILE__ ) . '/sitemaps/sitemap-builder.php';
41 }
42