• 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_Finder::construct_sitemap_url() – Construct the complete URL of a sitemap file. Depends on permalink settings.

You appear to be a bot. Output may be restricted

Description

Construct the complete URL of a sitemap file. Depends on permalink settings.

Usage

$string = Jetpack_Sitemap_Finder::construct_sitemap_url( $filename );

Parameters

$filename
( string ) required – The filename of the sitemap.

Returns

string Complete URI of the given sitemap file.

Source

File name: jetpack/modules/sitemaps/sitemap-finder.php


Lines:

1 to 11 of 11
  public function construct_sitemap_url( $filename ) {
    $url = jetpack_sitemap_uri( $filename );

    if ( pathinfo( $filename, PATHINFO_EXTENSION ) === 'xsl' ) {
      // strip scheme for sites where sitemap could be access via http or https
      $url = preg_replace( '/^https?:/', '', $url );
    }

    return $url;
  }
 

 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_Finder::construct_sitemap_url
Class ref: Jetpack_Sitemap_Finder
Plugin ref: Jetpack
Version: 7.9.1
Sourcefile: modules/sitemaps/sitemap-finder.php
File ref: modules/sitemaps/sitemap-finder.php
Deprecated?: No
API Letters: C,F,J,S

Footer

Jetpack a2z Jetpack a2z
Jetpack a2z
WordPress 5.3
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-2019. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites