Filters Associated With Archive Page

Filter: wp_travel_archive_itineraries_col_per_row #

Source

File: /inc/template-functions.php

Used by
/inc/template-functions.php

Example :

function wp_travel_manage_column(){
return 4;
}
add_filter('wp_travel_archive_itineraries_col_per_row','wp_travel_manage_column');

Filter: wp_travel_default_view_mode #

Source

File: /inc/template-functions.php

Used by
/inc/template-functions.php

Example :

function wp_travel_view_mode(){
    return "grid";
}
add_filter('wp_travel_default_view_mode','wp_travel_view_mode');

Filter: wp_travel_itineraries_col_per_row #

WP Travel itineraries shortcode column per row filter.

Source

File: /inc/class-shortcode.php
Used by: /inc/class-shortcode.php

Parameters
The default is 2.

Example:

function prefix_wp_travel_itineraries_col_per_row() {
    return ‘3’;
}
add_filter( 'wp_travel_itineraries_col_per_row', 'prefix_wp_travel_itineraries_col_per_row' );

Filter:wp_travel_itineraries_array #

WP Travel gets an itineraries array list.

Source

File: /inc/helpers.php
Used by: /inc/helpers.php

Parameters
$itineraries_array, $args

Example:

function prefix_wp_travel_itineraries_array( $itineraries_array, $args ) {
    $itineraries_array[‘ID’] = ‘SLUG’;
    return $itineraries_array;
}
add_filter( 'wp_travel_itineraries_array', 'prefix_wp_travel_itineraries_array', 12, 2 );

Filter: wp_travel_itinerary_thumbnail_size #

WP Travel posts thumbnail size.

Active Since v1.0.0

Source

File: /inc/helpers.php
Used by: /inc/helpers.php

Parameters
$size

Example:

function prefix_wp_travel_itinerary_thumbnail_size( $size ) {
    $size = ‘small’;
    return $size;
}
add_filter( 'wp_travel_itinerary_thumbnail_size', 'prefix_wp_travel_itinerary_thumbnail_size' );

Filter: wp_travel_trip_archive_filter_by #

WP Travel trips achieve filters by listing type.

Source

File: /inc/helpers.php
Used by: /inc/helpers.php

Parameters
$list_type. The default is ‘default’.

Example:

function prefix_wp_travel_trip_archive_filter_by( $list_type ) {
    $list_type = ‘LIST BY TYPE’;
    return $list_type;
}
add_filter( 'wp_travel_trip_archive_filter_by', 'prefix_wp_travel_trip_archive_filter_by' );

Filter: wp_travel_max_num_pages #

Archive page maximum number of pages.

Active Since v1.0.4

Source

File: /inc/template-functions.php
Used by: /inc/template-functions.php

Parameters
The default is ‘ ’.

Example:

function prefix_wp_travel_max_num_pages() {
    return ‘2’;
}
add_filter( 'wp_travel_max_num_pages', 'prefix_wp_travel_max_num_pages' );

Filter: wp_travel_max_num_pages #

WP Travel Pro v7.9.0 has introduced a valuable enhancement that allows users to take a quick look at the trip details without visiting the single trip page.

Hook to enable the feature

add_filter( 'wptravel_show_quick_view_option', function(){
	return true;
});