Filters Associated With Bank Deposit

Filter : apply_filters( wp_travel_bank_deposit_fields, $fields ) #

WP Travel bank deposit fields.

Active Since v2.0.0

Source

File: /inc/form-fields.php
Used by: /inc/form-fields.php

Parameters
$fields

Example:

function prefix_wp_travel_bank_deposit_fields( $fields ) {
    $fields[‘custom_key’] = ‘value’;
    return $fields;
}
add_filter( 'wp_travel_bank_deposit_fields', 'prefix_wp_travel_bank_deposit_fields' );

Filter: wp_travel_filter_bank_deposit_account_fields #

WP Travel bank deposit account fields filter.

Active Since v2.0.0

Source

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

Parameters
$display_fields

Example:

function prefix_wp_travel_filter_bank_deposit_account_fields( $display_fields ) {
    $display_fields[] = ‘bank details’;
    return $display_fields;
}
add_filter( 'wp_travel_filter_bank_deposit_account_fields', 'prefix_wp_travel_filter_bank_deposit_account_fields' );

Filter: wp_travel_bank_deposit_allowed_files #

Filter for bank deposit allowed files while depositing slip. ( For e.g jpg, png etc )

Source

File: /inc/gateways/bank-deposit.php
Used by: /inc/gateways/bank-deposit.php

Parameters
Defaults are ‘jpg, png, txt, pdf’.

Example:

function prefix_wp_travel_bank_deposit_allowed_files() {
    return ‘bmp, gif’;
}
add_filter( 'wp_travel_bank_deposit_allowed_files', 'prefix_wp_travel_bank_deposit_allowed_files' );

Filter: wp_travel_partial_payment_due_amount #

Filter for partial payment due amount on bank deposit.

Source

File: /inc/gateways/bank-deposit.php
Used by: /inc/gateways/bank-deposit.php

Parameters
$due_amount

Example:

function prefix_wp_travel_partial_payment_due_amount( $due_amount ) {
    $due_amount = $due_amount - 50;
    return $due_amount;
}
add_filter( 'wp_travel_partial_payment_due_amount', 'prefix_wp_travel_partial_payment_due_amount' );