jetpack_static_url

The Jetpack by WordPress.com jetpack static url hook.

Description

apply_filters( 'jetpack_static_url', $set_url_scheme ); 

Parameters (1)

0. $set_url_scheme
The set url scheme.

Usage

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

Defined (4)

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

/modules/widgets/top-posts.php  
  1. 'gravatar_default' => apply_filters( 'jetpack_static_url', set_url_scheme( 'http://en.wordpress.com/i/logo/white-gray-80.png' ) ), 
/modules/stats.php  
  1. echo esc_url( apply_filters( 'jetpack_static_url', "{$http}://en.wordpress.com/i/loading/loading-64.gif" ) ); ?>" /></p> 
/modules/shortcodes/audio.php  
  1. $swfurl = apply_filters( 
/modules/sharedaddy/sharing-sources.php  
  1. echo apply_filters( 'jetpack_static_url', plugin_dir_url( __FILE__ ) . 'images/loading.gif' ); ?>" alt="loading" width="16" height="16" />