Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 603 Bytes
<?php
/**
* Dictator controls the State of WordPress with WP-CLI
*
* Use wisely.
*/
if ( ! defined( 'WP_CLI' ) || ! WP_CLI ) {
return;
}
define( 'DICTATOR', true );
/**
* Some files need to be manually loaded
*/
require_once dirname( __FILE__ ) . '/autoload.php';
require_once dirname( __FILE__ ) . '/php/class-dictator.php';
require_once dirname( __FILE__ ) . '/php/class-dictator-translator.php';
require_once dirname( __FILE__ ) . '/php/class-dictator-cli-command.php';
Dictator::add_state( 'network', '\Dictator\States\Network' );
Dictator::add_state( 'site', '\Dictator\States\Site' );
You can’t perform that action at this time.