jetpack_pre_switch_theme, $theme_slug, $args
jetpack_pre_switch_theme, $theme_slug, $args
Appears in: jetpack.16.0.1
Hook Type: action
Displaying hooks found in version: jetpack.16.0.1do_action('jetpack_pre_switch_theme, $theme_slug, $args') is found 1 times:
- /json-endpoints/jetpack/class.jetpack-json-api-themes-active-endpoint.php line 65
* * @param string $theme_slug Directory name for the theme. * @param mixed $args POST body data, including info about the theme we must switch to. */ do_action( 'jetpack_pre_switch_theme', $theme_slug, $args ); $theme = wp_get_theme( $theme_slug ); if ( ! $theme->exists() ) { return new WP_Error( 'theme_not_found', __( 'The specified theme was not found.', 'jetpack' ), 404 ); }