filter wp_travel_itinerary_thumbnail_size missing?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7524
    MrOlans
    Participant

    Hello its me again 😛

    I’m searching for filter wp_travel_itinerary_thumbnail_size but it doesn’t appear in the code. I’m using the version 1.4.8. Could I have help locating it or was it removed?

    #7527
    Support Team
    Keymaster

    Hello @mrolans,

    The filter “wp_travel_itinerary_thumbnail_size” is there even with the latest version of the plugin which is 1.4.9.

    You can find the filer in wp-travel > inc > helpers.php line no: 236.

    Thank you.

    Regards!!

    #7554
    MrOlans
    Participant

    Thank you I see the function but I’m am confused about how it works

    If i give it the $size parameter of ‘wp_travel_thumbnail’ it should return an image with the dimension of 365 x 215? Am i correct in this please explain I read documentation already

    #7556
    Support Team
    Keymaster

    Hello @mrolans,

    Below is the example how you can use the filter.

    function wp_travel_customize_image_size( ) {
      return 'full';
    }
    add_filter( 'wp_travel_itinerary_thumbnail_size', 'wp_travel_customize_image_size', 99 );

    Using this filter you can return the string i.e. the standard size of the image like full, Medium etc.

    Hope this helps.

    Regards!!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.