Search Documentation

WP Travel Developer Documentation

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

Filter :wp_travel_payout_percent

WP Travel minimum payout percent.

Source

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

Parameters
$payout_percent, $post_id

Example:

function prefix_wp_travel_payout_percent( $payout_percent, $post_id ) {
    $payout_percent = array( 15 );
    return $payout_percent;
}
add_filter( 'wp_travel_payout_percent', 'prefix_wp_travel_payout_percent', 12, 2 );
Was this article helpful to you? Yes No

How can we help?