switch_theme


switch_theme ( $stylesheet )

Parameters:
  • (string) stylesheet Stylesheet name.
Defined at:

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.

Related Functions

is_child_theme, get_theme, make_site_theme, wp_get_theme, get_themes

Top Google Results

User discussions

wpseek mobile