In this article

filter

jetpack_wpcom_theme_install

Filters whether to use an alternative process for installing a WordPress.com theme. The alternative process can be executed during the filter. The filter can also return an instance of WP_Error; in which case the endpoint response will contain this error.

Parameters

$use_alternative_install_method
bool

Whether to use the alternative method of installing a WPCom theme.

$theme_slug
string

Theme name (slug). If it is a WPCom theme, it should be suffixed with `-wpcom`.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.