Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Tour Extras
  5. Filter :wp_travel_tour_extra_paypal_args

Filter :wp_travel_tour_extra_paypal_args

Filter for adding tour extra information to paypal.

Source

File: /inc/gateways/standard-paypal/class-wp-travel-gateway-paypal-request.php
Used by: /inc/gateways/standard-paypal/class-wp-travel-gateway-paypal-request.php

Parameters
$args, $item, $cart_id, $agrs_index

Example:

function prefix_wp_travel_tour_extra_paypal_args( $args, $item, $cart_id, $agrs_index ) {
    $args[ ‘trip_extra_item_name’. $args_index ] = ‘Extras 1’;
    return $args;
}
add_filter( 'wp_travel_tour_extra_paypal_args', 'prefix_wp_travel_tour_extra_paypal_args', 12, 4 );
Was this article helpful to you? Yes No

How can we help?