Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Bank Deposit
  5. Filter :wp_travel_bank_deposit_allowed_files

Filter :wp_travel_bank_deposit_allowed_files

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


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

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


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' );
Was this article helpful to you? Yes No

How can we help?