Languages: English • Italiano • 日本語 (Add your language)
Switches current theme to new template and stylesheet names.
Accepts one argument: $stylesheet of the theme. ($stylesheet is the name of your folder slug. It's the same value that you'd use for a child theme, something like `twentythirteen`.) It also accepts an additional function signature of two arguments: $template then $stylesheet. This is for backwards compatibility.
<?php switch_theme( $stylesheet ) ?>
Optional usage for backwards compatibility:
<?php switch_theme( $template, $stylesheet ) ?>
Since: 2.5.0
Altered 4/23 to define default/alternate function signature and parameters
switch_theme() is located in wp-includes/theme.php
.