jetpack_photon_skip_image
The WordPress Core jetpack photon skip image hook.
Description
Parameters (1)
- 0. $return_true (string) =>
'__return_true'
- The return true.
Usage
- To run the hook, copy the example below.
- $return_true = apply_filters( 'jetpack_photon_skip_image', $return_true );
- if ( !empty( $return_true ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the jetpack_photon_skip_image callback
- function filter_jetpack_photon_skip_image( $return_true ) {
- // make filter magic happen here...
- return $return_true;
- };
- // add the filter
- add_filter( 'jetpack_photon_skip_image', 'filter_jetpack_photon_skip_image', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'jetpack_photon_skip_image', 'filter_jetpack_photon_skip_image', 10, 1 );
Defined (4)
The filter is defined in the following location(s).
- /3rd-party/buddypress.php
- add_filter( 'jetpack_photon_skip_image', '__return_true' );
- /class.photon.php
- if ( apply_filters( 'jetpack_photon_skip_image', false, $src, $tag ) )
- if ( apply_filters( 'jetpack_photon_skip_image', false, $source['url'], $source ) ) {
- && ! apply_filters( 'jetpack_photon_skip_image', false, $url, null )