inc/ThemeLockCommand.php
public function unlock( $args, $assoc_args ) {
		if ( ! Book::isBook() ) {
			WP_CLI::warning( 'Not a book. Did you forget the --url parameter?' );
			return;
		}
		if ( CustomCss::isCustomCss() ) {
			WP_CLI::warning( "Deprecated! Can't unlock a theme if it's Custom CSS" );
			return;
		}

		$lock = new Lock();
		if ( ! $lock->isLocked() ) {
			WP_CLI::warning( 'Theme already unlocked.' );
		} else {
			$theme = $lock->unlockTheme();
			$this->updateThemeLockOption( false );
			WP_CLI::success( 'Theme was unlocked. Now using ' . $theme->get( 'Name' ) . ', version ' . $theme->get( 'Version' ) );
		}
	}
public function unlock( $args, $assoc_args ) {
		if ( ! Book::isBook() ) {
			WP_CLI::warning( 'Not a book. Did you forget the --url parameter?' );
			return;
		}
		if ( CustomCss::isCustomCss() ) {
			WP_CLI::warning( "Deprecated! Can't unlock a theme if it's Custom CSS" );
			return;
		}

		$lock = new Lock();
		if ( ! $lock->isLocked() ) {
			WP_CLI::warning( 'Theme already unlocked.' );
		} else {
			$theme = $lock->unlockTheme();
			$this->updateThemeLockOption( false );
			WP_CLI::success( 'Theme was unlocked. Now using ' . $theme->get( 'Name' ) . ', version ' . $theme->get( 'Version' ) );
		}
	}
Unlock a book's theme.

## OPTIONS

--url=<url>
: The URL of the target book.

@when after_wp_load

@param array $args
@param array $assoc_args