Your IP : 216.73.216.138


Current Path : /home/ereika83/public_html/wp-content/plugins/autodescription/bootstrap/
Upload File :
Current File : /home/ereika83/public_html/wp-content/plugins/autodescription/bootstrap/init-cron.php

<?php
/**
 * @package The_SEO_Framework
 * @subpackage The_SEO_Framework\Bootstrap
 */

namespace The_SEO_Framework;

\defined( 'THE_SEO_FRAMEWORK_PRESENT' ) or die;

/**
 * The SEO Framework plugin
 * Copyright (C) 2023 - 2024 Sybre Waaijer, CyberWire B.V. (https://cyberwire.nl/)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as published
 * by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

// Prerender sitemap.
if (
	   Data\Plugin::get_option( 'sitemap_cron_prerender' ) // Less likely to be true.
	&& Data\Plugin::get_option( 'sitemaps_output' )
) {
	\add_action(
		'tsf_sitemap_cron_hook_before',
		[ Sitemap\Optimized\Base::class, 'prerender_sitemap' ],
	);
}