Filters whether to use an alternative process for deleting 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_delete_method
bool Whether to use the alternative method of deleting a WPCom theme.
- $theme_slug
string Theme name (slug). If it is a WPCom theme, it should be suffixed with `-wpcom`.
Changelog
- Introduced in Jetpack 4.4.2