jetpack_photon_url

The WordPress Core jetpack photon url hook.

Description

apply_filters( 'jetpack_photon_url', (unknown) $get_site_icon_url, (array) $array ); 

Parameters (2)

0. $get_site_icon_url (unknown) => get_site_icon_url()
The get site icon url.
1. $array — Optional. (array) => array( 'w' => 64 )
The array.

Usage

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

Defined (5)

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

/_inc/lib/admin-pages/class.jetpack-react-page.php  
  1. ? apply_filters( 'jetpack_photon_url', get_site_icon_url(), array( 'w' => 64 ) ) 
/jetpack.php  
  1. add_filter( 'jetpack_photon_url', 'jetpack_photon_url', 10, 3 ); 
/functions.photon.php  
  1. add_filter( 'jetpack_photon_url', 'jetpack_photon_url', 10, 3 ); 
/modules/videopress/class.videopress-xmlrpc.php  
  1. $poster = apply_filters( 'jetpack_photon_url', $poster, array( 'ssl' => 1 ), 'https' ); 
/modules/videopress/utility-functions.php  
  1. $poster = apply_filters( 'jetpack_photon_url', $meta['videopress']['poster'], array( 'ssl' => 1 ), 'https' );