Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_payment_modes

Filter for WP Travel payment modes.

Source

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

Parameters
$modes

Example:

function prefix_wp_travel_payment_modes( $modes ) {
    $mode[‘custom_mode’] = esc_html__( ‘Custom Payment’, ‘wp-travel’ );
    return $mode;
}
add_filter( 'wp_travel_payment_modes', 'prefix_wp_travel_payment_modes' );
Was this article helpful to you? Yes No

How can we help?