public function update($id, $args = [])
    {
        $theme = wp_get_theme($id);

        if (! $theme->exists()) {
            throw new UnexpectedValueException(sprintf('[W612] Could not find theme %s', $id));
        }

        switch_theme($theme->get_template());
    }
public function update($id, $args = [])
    {
        $theme = wp_get_theme($id);

        if (! $theme->exists()) {
            throw new UnexpectedValueException(sprintf('[W612] Could not find theme %s', $id));
        }

        switch_theme($theme->get_template());
    }
public function update ( $ id , $ args = [ ] ) { $ theme = wp_get_theme ( $ id ) ; if ( ! $ theme -> exists ( ) ) { throw new UnexpectedValueException ( sprintf ( '[W612] Could not find theme %s' , $ id ) ) ; } switch_theme ( $ theme -> get_template ( ) ) ; }
Switch active theme.

@param string $id Theme name to switch to.
@param array $args Not used.

@throws \UnexpectedValueException
Switch active theme .