• 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_State::initial() – Initial state for the sitemap generator.

You appear to be a bot. Output may be restricted

Description

Initial state for the sitemap generator.

Usage

$array = Jetpack_Sitemap_State::initial( $type );

Parameters

$type
( string ) optional default: JP_PAGE_SITEMAP_TYPE – The initial sitemap type.
sitemap-type
( string ) optional default: JP_PAGE_SITEMAP_TYPE – The type of sitemap to be generated.
last-added
( int ) optional default: JP_PAGE_SITEMAP_TYPE – The largest index to be added to a generated sitemap page.
number
( int ) optional default: JP_PAGE_SITEMAP_TYPE – The index of the last sitemap to be generated.
last-modified
( string ) optional default: JP_PAGE_SITEMAP_TYPE – The latest timestamp seen.
max
( array ) optional default: JP_PAGE_SITEMAP_TYPE – The latest index of each sitemap type seen. }

Returns

array $args {

Source

File name: jetpack/modules/sitemaps/sitemap-state.php
Lines:

1 to 9 of 9
  private static function initial( $type = JP_PAGE_SITEMAP_TYPE ) {
    return array(
      'sitemap-type'  => $type,
      'last-added'    => 0,
      'number'        => 0,
      'last-modified' => '1970-01-01 00:00:00',
      'max'           => array(),
    );
  }
 

 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_State::initial
Class ref: Jetpack_Sitemap_State
Plugin ref: Jetpack
Version: 9.2
Sourcefile: modules/sitemaps/sitemap-state.php
File ref: modules/sitemaps/sitemap-state.php
Deprecated?: No
API Letters: I,J,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