developer
  • Codex
  • Beta Program
  • Support
  • Blog
  • Docs

Chapters

  • WP Hooks Reference
    • Ads
    • Asset CDN
    • Brute force protection
    • Carousel
    • Comment Likes
    • Comments
    • Copy Post
    • Custom content types
    • Extra Sidebar Widgets
    • Forms
    • Google Fonts (Beta)
    • Gravatar Hovercards
    • Image CDN
    • Infinite Scroll
    • JSON API
    • Jetpack Social
    • Jetpack Stats
    • Likes
    • Markdown
    • Newsletter
    • Notifications
    • Related posts
    • SEO Tools
    • Search
    • Secure Sign On
    • Sharing
    • Shortcode Embeds
    • Site verification
    • Sitemaps
    • Tiled Galleries
    • VideoPress
    • Widget Visibility
    • WooCommerce Analytics
  • Jetpack Development
    • Contributor Code of Conduct
    • Developer Environment
    • Monorepo Overview
    • Autoloader
    • Starting a New Project
    • Coding Standards
    • Internationalization
    • Testing
    • Code Deprecation
    • Static Code Analysis
    • Creating a Pull Request
    • Releases
    • Jetpack CLI
    • IDE Integrations
  • Customization
    • Contact Form Customization
    • Jetpack Search: Document Fields
    • Jetpack Search: Query Customization
    • Module Overrides
    • Related Posts
    • Theme support
      • Content Options
      • Featured Content
      • Infinite Scroll
      • Responsive videos
      • Site Breadcrumbs
      • Social Links
      • Social Menu
    • WP Super Cache
      • Add or Removing Cookies
      • Developer Documentation
      • Partial Page Caching
      • WP Super Cache FAQ
      • Writing WP Super Cache Plugins
    • WP.me Shortlinks

In this article

  • Parameters
  • Changelog
  • How to use this hook
  • Notes

↑ Back to top

filter

jetpack_is_staging_site

Filters is_staging_site check.

Parameters

$is_staging
bool

If the current site is a staging site.

Changelog

  • Introduced in Jetpack 1.1.1

How to use this hook

See “How to use actions and filters to customize Jetpack”.

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' );
«Previous: jetpack_known_staging
Next: jetpack_options_whitelist»
An Automattic contraptionWork With Us
  • Comment
  • Subscribe Subscribed
    • Jetpack Developer Resources
    • Join 114 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Jetpack Developer Resources
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar