• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / modules/sitemaps/sitemaps.php


Lines:

1 to 62 of 62
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName

/**
 * Generate sitemap files in base XML as well as some namespace extensions.
 *
 * This module generates two different base sitemaps.
 *
 * 1. sitemap.xml
 *    The basic sitemap is updated regularly by wp-cron. It is stored in the
 *    database and retrieved when requested. This sitemap aims to include canonical
 *    URLs for all published content and abide by the sitemap spec. This is the root
 *    of a tree of sitemap and sitemap index xml files, depending on the number of URLs.
 *
 *    By default the sitemap contains published posts of type 'post' and 'page', as
 *    well as the home url. To include other post types use the 'jetpack_sitemap_post_types'
 *    filter.
 *
 * @link https://www.sitemaps.org/protocol.html Base sitemaps protocol.
 * @link https://support.google.com/webmasters/answer/178636 Image sitemap extension.
 * @link https://developers.google.com/webmasters/videosearch/sitemaps Video sitemap extension.
 *
 * 2. news-sitemap.xml
 *    The news sitemap is generated on the fly when requested. It does not aim for
 *    completeness, instead including at most 1000 of the most recent published posts
 *    from the previous 2 days, per the news-sitemap spec.
 *
 * @link https://support.google.com/webmasters/answer/74288 News sitemap extension.
 *
 * @package Jetpack
 * @since 3.9.0
 * @since 4.8.0 Remove 1000 post limit.
 * @author Automattic
 */

/* Include all of the sitemap subclasses. */
require_once __DIR__ . '/sitemap-constants.php';
require_once __DIR__ . '/sitemap-buffer.php';
require_once __DIR__ . '/sitemap-stylist.php';
require_once __DIR__ . '/sitemap-librarian.php';
require_once __DIR__ . '/sitemap-finder.php';
require_once __DIR__ . '/sitemap-builder.php';

if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
  require_once __DIR__ . '/sitemap-logger.php';
}

/* class Jetpack_Sitemap_Manager */
/* function Jetpack_Sitemap_Manager::__construct() – Construct a new Jetpack_Sitemap_Manager. */
/* function Jetpack_Sitemap_Manager::serve_raw_and_die() – Echo a raw string of given content-type. */
/* function Jetpack_Sitemap_Manager::callback_action_catch_sitemap_urls() – Callback to intercept sitemap url requests and serve sitemap files. */
/* function Jetpack_Sitemap_Manager::callback_add_sitemap_schedule() – Callback for adding sitemap-interval to the list of schedules. */
/* function Jetpack_Sitemap_Manager::callback_sitemap_cron_hook() – Callback handler for sitemap cron hook */
/* function Jetpack_Sitemap_Manager::schedule_sitemap_generation() – Add actions to schedule sitemap generation. */
/* function Jetpack_Sitemap_Manager::callback_action_do_robotstxt() – Callback to add sitemap to robots.txt. */
/* function Jetpack_Sitemap_Manager::callback_action_flush_news_sitemap_cache() – Callback to delete the news sitemap cache. */
/* function Jetpack_Sitemap_Manager::callback_action_purge_data() – Callback for resetting stored sitemap data. */
/* function Jetpack_Sitemap_Manager::callback_action_filter_sitemap_location() – Callback to set the sitemap location. */

new Jetpack_Sitemap_Manager();

/* function jetpack_sitemap_uri() – Absolute URL of the current blog’s sitemap. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: modules/sitemaps/sitemaps.php
      Plugin ref: Jetpack
      Version: 9.4
      Deprecated?: No
      API Letters: M,P,S

      Related

      Published: 27 November 2019 | Last updated: 21 August 2020

      Primary Sidebar

      Information

      File name: modules/sitemaps/sitemaps.php
      Plugin ref: Jetpack
      Version: 9.4
      Deprecated?: No
      API Letters: M,P,S

      modules/sitemaps

      Footer

      Jetpack a2z
      Jetpack a2z
      Jetpack a2z
      WordPress 5.6.2
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  jetpack.wp-a2z.org
      © Copyright Jetpack a2z 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites