switch_theme
switch_theme ( $stylesheet )
Parameters:- (string) stylesheet Stylesheet name.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Switches the theme.Accepts one argument: $stylesheet of the theme. It also accepts an additional function signature
of two arguments: $template then $stylesheet. This is for backward compatibility.