Trigger action before the switch theme happens.
Parameters
- .
- ( json-api ) . .
- .
- ( 11.1 ) . .
- $theme_slug
- ( string ) Directory name for the theme. . . .
- ( mixed ) $args POST body data, including info about the theme we must switch to. . . .
Trigger action before the switch theme happens.