apply_filters ( 'jetpack_wpcom_theme_delete', bool $use_alternative_delete_method, string $theme_slug )

Filters whether to use an alternative process for deleting a 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-delete-endpoint.php

View in GitHub



(bool) Whether to use the alternative method of deleting a WPCom theme.


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


Since: Jetpack 4.4.2


Have a note to contribute?

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

You are commenting using your 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