Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_currency_symbol

WP Travel currency symbol filter.

Source

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

Parameters
$currency_symbols[ $currency_code ], $currency_code, $currency_symbols

Example:

function prefix_wp_travel_currency_symbol( $currency_symbols[ $currency_code ], $currency_code, $currency_symbols ) {
    $currency_symbols[ $currency_code ] = __( 'NPR', 'wp-travel'
    );
    return $currency_symbols;
}
add_filter( 'wp_travel_currency_symbol', 'prefix_wp_travel_currency_symbol', 12, 3 );
Was this article helpful to you? Yes No

How can we help?