You appear to be a bot. Output may be restricted
Description
Store a sitemap state, and unlock it.
Usage
Jetpack_Sitemap_State::check_in( $state );
Parameters
- $state
- ( array ) required – Array of the Sitemap state details.
- sitemap-type
- ( string ) required – The type of sitemap to be generated.
- last-added
- ( int ) required – The largest index to be added to a generated sitemap page.
- number
- ( int ) required – The index of the last sitemap to be generated.
- last-modified
- ( string ) required – The latest timestamp seen.
Returns
void
Source
File name: jetpack/modules/sitemaps/sitemap-state.php
Lines:
1 to 11 of 11
public static function check_in( $state ) { // Get the old max value. $sitemap_old = get_option( 'jetpack-sitemap-state', self::initial() ); $state['max'] = $sitemap_old['max']; // Update the max value of the current type. $state['max'][ $state['sitemap-type'] ]['number'] = $state['number']; $state['max'][ $state['sitemap-type'] ]['lastmod'] = $state['last-modified']; update_option( 'jetpack-sitemap-state', $state ); }