apply_filters ( 'jetpack_is_staging_site', bool $is_staging )

Filters is_staging_site check.

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

View in GitHub

Parameters

$is_staging

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


Changelog

Since: Jetpack 3.9.0


Notes

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:

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