Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Image
  5. Filter : wp_travel_gallery_image

Filter : wp_travel_gallery_image

This filter helps to modify the image size of the gallery.

Source

File : /inc/helpers.php

Used by
/inc/helpers.php

Example :

function wp_travel_thumbnail_size($sizes){
 $sizes['width'] = 250;
 $sizes['height'] = 250;
 return $sizes;

}

add_filter('wp_travel_image_size','wp_travel_thumbnail_size');

function wp_travel_gallery_image_size( $image_size ) {
    return 'wp_travel_thumbnail';
}
add_filter('wp_travel_gallery_image','wp_travel_gallery_image_size');
Was this article helpful to you? Yes No

How can we help?