Filters Associated With Image

Filter: wp_travel_review_gravatar_size #

Source

File : /templates/review.php

Used by
/templates/review.php

Example :

function prefix_wp_travel_review_gravatar_size( $size ) {
    return '50'; // Filters grvatar size.
}
add_filter( 'wp_travel_review_gravatar_size', 'prefix_wp_travel_review_gravatar_size' );

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');

Filter: wp_travel_image_size #

Image sizes

Source

File: wp-travel.php
Used by: wp-travel.php

Parameters
$size

Example:

function prefix_wp_travel_image_size( $size ) {
    $size = array (
    ‘width’ => 200,
    ‘height’ => 200,
    );
    return $size;
}
add_filter( 'wp_travel_image_size', 'prefix_wp_travel_image_size');

Filter: wp_travel_og_image_size #

WP Travel og image size.

Source

File: /inc/og-tags.php
Used by: /inc/og-tags.php

Parameters
Default is large.

Example:

function prefix_wp_travel_og_image_size() {
    return ‘small’;
}
add_filter( 'wp_travel_og_image_size', 'prefix_wp_travel_og_image_size' );