Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove_photon_downsize( $query ) {
- remove_filter( 'image_downsize', array( Jetpack_Photon::instance(), 'filter_image_downsize' ) );
- return $query;
- }
- add_filter( 'bgmp_get-map-placemarks-query', 'remove_photon_downsize' );
- function add_photon_downsize( $placemarks ) {
- add_filter( 'image_downsize', array( Jetpack_Photon::instance(), 'filter_image_downsize' ), 10, 3 );
- return $placemarks;
- }
- add_filter( 'bgmp_get-map-placemarks-return', 'add_photon_downsize' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement