Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_search_placeholder

WP Travel search filter placeholder for search field.

Source

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

Parameters
$placeholder

Example:

function prefix_wp_travel_search_placeholder( $placeholder ) {
    $placeholder = ‘__( ‘CUSTOM PLACEHOLDER’, ‘wp-travel’ );
    return $placeholder;
}
add_filter( 'wp_travel_search_placeholder', 'prefix_wp_travel_search_placeholder' );
Was this article helpful to you? Yes No

How can we help?