public function is_active( $args, $assoc_args = array() ) {
		$theme = wp_get_theme( $args[0] );

		if ( ! $theme->exists() ) {
			WP_CLI::halt( 1 );
		}

		$this->is_active_theme( $theme ) ? WP_CLI::halt( 0 ) : WP_CLI::halt( 1 );
	}
public function is_active( $args, $assoc_args = array() ) {
		$theme = wp_get_theme( $args[0] );

		if ( ! $theme->exists() ) {
			WP_CLI::halt( 1 );
		}

		$this->is_active_theme( $theme ) ? WP_CLI::halt( 0 ) : WP_CLI::halt( 1 );
	}
public function is_active ( $ args , $ assoc_args = array ( ) ) { $ theme = wp_get_theme ( $ args [ 0 ] ) ; if ( ! $ theme -> exists ( ) ) { WP_CLI :: halt ( 1 ) ; } $ this -> is_active_theme ( $ theme ) ? WP_CLI :: halt ( 0 ) : WP_CLI :: halt ( 1 ) ; }
Checks if a given theme is active.

Returns exit code 0 when active, 1 when not active.

## OPTIONS

<theme>
: The plugin to check.

## EXAMPLES

# Check whether theme is Active; exit status 0 if active, otherwise 1
$ wp theme is-active twentyfifteen
$ echo $?
1

@subcommand is-active
Checks if a given theme is active .