Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_selected_payment_gateway

WP Travel currently selected payment gateway.

Source

File: /inc/payments/wp-travel-payments.php
Used by: /inc/payments/wp-travel-payments.php

Parameters
$selected_payment

Example:

function prefix_wp_travel_selected_payment_gateway( $selected_payment ) {
    $selected_payment = ‘Manage Payment’;
    return $selected_payment;
}
add_filter( 'wp_travel_selected_payment_gateway', 'prefix_wp_travel_selected_payment_gateway' );
Was this article helpful to you? Yes No

How can we help?