apply_filters ( 'jetpack_is_staging_site', bool $is_staging )

Filters is_staging_site check.

Source file: jetpack_vendor/automattic/jetpack-status/src/class-status.php

View in GitHub



(bool) If the current site is a staging site.


Since: Jetpack 1.1.1


You can use that filter to change the status of your site. To force your site to be considered a staging site, use the following snippet:

add_filter( 'jetpack_is_staging_site', '__return_true' );

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