is_jetpack_site

The Jetpack by WordPress.com is jetpack site hook.

Description

apply_filters( 'is_jetpack_site', (bool) $false, (unknown) $blog_id ); 

Parameters (2)

0. $false (bool)
The false.
1. $blog_id (unknown)
The blog id.

Usage

To run the hook, copy the example below.
  1. $false = apply_filters( 'is_jetpack_site', $false, $blog_id ); 
  2.  
  3. if ( !empty( $false ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the is_jetpack_site callback 
  2. function filter_is_jetpack_site( $false, $blog_id ) { 
  3. // make filter magic happen here... 
  4. return $false
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'is_jetpack_site', 'filter_is_jetpack_site', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'is_jetpack_site', 'filter_is_jetpack_site', 10, 2 ); 

Defined (5)

The filter is defined in the following location(s).

/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php  
  1. $is_jetpack = true === apply_filters( 'is_jetpack_site', false, $blog_id ); 
/json-endpoints/class.wpcom-json-api-post-v1-1-endpoint.php  
  1. $is_jetpack = true === apply_filters( 'is_jetpack_site', false, $blog_id ); 
/json-endpoints/class.wpcom-json-api-post-endpoint.php  
  1. $is_jetpack = true === apply_filters( 'is_jetpack_site', false, $blog_id ); 
/json-endpoints/class.wpcom-json-api-get-site-endpoint.php  
  1. $is_jetpack = true === apply_filters( 'is_jetpack_site', false, $blog_id ); 
/class.json-api-endpoints.php  
  1. $is_jetpack = true === apply_filters( 'is_jetpack_site', false, get_current_blog_id() );