jetpack_sitemap_generation_delay, MINUTE_IN_SECONDS * wp_rand( 1, 15

jetpack_sitemap_generation_delay, MINUTE_IN_SECONDS * wp_rand( 1, 15

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_sitemap_generation_delay, MINUTE_IN_SECONDS * wp_rand( 1, 15') is found 2 times:

  • /modules/sitemaps/sitemaps.php line 428
    			 * @since 6.6.1
    			 *
    			 * @param int $delay Time to delay in seconds.
    			 */
    			$delay = apply_filters( 'jetpack_sitemap_generation_delay', MINUTE_IN_SECONDS * wp_rand( 1, 15 ) ); // Randomly space it out to start within next fifteen minutes.
    			wp_schedule_event(
    				time() + $delay,
    				'sitemap-interval',
    				'jp_sitemap_cron_hook'
    			);
    		}
    
  • /modules/sitemaps/sitemaps.php line 519
    	public function callback_action_purge_data() {
    		$this->callback_action_flush_news_sitemap_cache();
    		$this->librarian->delete_all_stored_sitemap_data();
    		/** This filter is documented in modules/sitemaps/sitemaps.php */
    		$delay = apply_filters( 'jetpack_sitemap_generation_delay', MINUTE_IN_SECONDS * wp_rand( 1, 15 ) ); // Randomly space it out to start within next fifteen minutes.
    		wp_schedule_single_event( time() + $delay, 'jp_sitemap_cron_hook' );
    	}
    
    	/**
    	 * Callback to set the sitemap location.
    	 *