apply_filters ( 'jetpack_wpcom_theme_install', bool $use_alternative_install_method, string $theme_slug )

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

Source file: json-endpoints/jetpack/class.jetpack-json-api-themes-install-endpoint.php

View in GitHub

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

Since: Jetpack 4.4.2


Notes

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s