Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Single Itinerary Page
  5. Filter :wp_travel_related_post_title

Filter :wp_travel_related_post_title

WP Travel related trips title.

Source

File: /templates/content-related-posts.php
Used by: /templates/content-related-posts.php

Parameters
Default is ‘esc_html__( ‘Related Trips’, ‘wp-travel’ )’.

Example:

function prefix_wp_travel_related_post_title( $max_available, $pax_limit ) {
    return ‘esc_html__( 'Here are Related Trips', 'wp-travel' )’;
}
add_filter( 'wp_travel_related_post_title', 'prefix_wp_travel_related_post_title' );
Was this article helpful to you? Yes No

How can we help?