Done !
Server IP : 162.0.217.223 / Your IP : 216.73.216.168 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/www/wp-content/plugins/seo-by-rank-math/includes/cli/ |
Upload File : |
<?php /** * Rank Math core CLI commands. * * @since 0.9.0 * @package RankMath * @subpackage RankMath\WP_CLI * @author Rank Math <support@rankmath.com> */ namespace RankMath\CLI; use WP_CLI; use WP_CLI_Command; use RankMath\Helper; use RankMath\Sitemap\Cache; use RankMath\Sitemap\Sitemap_XML; defined( 'ABSPATH' ) || exit; /** * Commands class. */ class Commands extends WP_CLI_Command { /** * Generate the sitemap. * * @param array $args Arguments passed. */ public static function sitemap_generate( $args ) { $sitemap = Helper::get_module( 'sitemap' ); if ( false === $sitemap ) { WP_CLI::error( 'Sitemap module not active.' ); return; } Cache::invalidate_storage(); $generator = new Sitemap_XML( '1' ); $generator->get_output(); WP_CLI::success( 'Sitemap generated.' ); } }