register(); ( new Assets() )->register(); Notices::init(); } if ( defined( 'WP_CLI' ) && WP_CLI ) { \WP_CLI::add_command( 'gemoffload', Cli\Command::class ); \WP_CLI::add_command( 'gemoffload backup', Cli\BackupCommand::class ); } } public function register_contexts(): void { Contexts::register_defaults(); /** * Fires once the storage API is ready (init, priority 1). Products * register their file contexts here with Manager::register_context(). */ do_action( 'gemoffload/loaded', GEMOFFLOAD_VERSION ); } }