• 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 / APIs / Jetpack_Sitemap_Manager::callback_action_filter_sitemap_location() – Callback to set the sitemap location.

You appear to be a bot. Output may be restricted

Description

Callback to set the sitemap location.

Usage

Jetpack_Sitemap_Manager::callback_action_filter_sitemap_location();

Parameters

Returns

void

Source

File name: jetpack/modules/sitemaps/sitemaps.php
Lines:

1 to 40 of 40
  public function callback_action_filter_sitemap_location() {
    update_option(
      'jetpack_sitemap_location',
      
/**
 * Additional path for sitemap URIs. Default value is empty.
 *
 * This string is any additional path fragment you want included between
 * the home URL and the sitemap filenames. Exactly how this fragment is
 * interpreted depends on your permalink settings. For example:
 *
 *   Pretty permalinks:
 *     home_url() . jetpack_sitemap_location . '/sitemap.xml'
 *
 *   Plain ("ugly") permalinks:
 *     home_url() . jetpack_sitemap_location . '/?jetpack-sitemap=sitemap.xml'
 *
 *   PATHINFO permalinks:
 *     home_url() . '/index.php' . jetpack_sitemap_location . '/sitemap.xml'
 *
 * where 'sitemap.xml' is the name of a specific sitemap file.
 * The value of this filter must be a valid path fragment per RFC 3986;
 * in particular it must either be empty or begin with a '/'.
 * Also take care that any restrictions on sitemap location imposed by
 * the sitemap protocol are satisfied.
 *
 * The result of this filter is stored in an option, 'jetpack_sitemap_location';
 * that option is what gets read when the sitemap location is needed.
 * This way we don't have to wait for init to finish before building sitemaps.
 *
 * @link https://tools.ietf.org/html/rfc3986#section-3.3 RFC 3986
 * @link https://www.sitemaps.org/ The sitemap protocol
 *
 * @since 4.8.0
 */
      apply_filters(
        'jetpack_sitemap_location',
        ''
      )
    );
  }
 

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 27 November 2019 | Last updated: 27 November 2019

Primary Sidebar

Information

Function name: Jetpack_Sitemap_Manager::callback_action_filter_sitemap_location
Class ref: Jetpack_Sitemap_Manager
Plugin ref: Jetpack
Version: 9.2
Sourcefile: modules/sitemaps/sitemaps.php
File ref: modules/sitemaps/sitemaps.php
Deprecated?: No
API Letters: A,C,J,M,S

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 5.6
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