Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
resmushit-image-optimizer
/
classes
/
Controller
:
WpCliController.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Resmush\Controller; if (! defined('ABSPATH')) { exit; // Exit if accessed directly. } class WpCliController { protected static $instance; public static function getInstance() { if (is_null(self::$instance)) self::$instance = new static(); return self::$instance; } public function __construct() { /** * * Declares WPCLI extension if in WP_CLI context * */ if( defined( 'WP_CLI' ) && WP_CLI ) { WP_CLI::add_command( 'resmushit', 'reSmushitWPCLI' ); } } }