woocommerce_bacs_account_fields filter-hook . WC 1.0
BACS account fields shown on the thanks page and in emails.
Usage
add_filter( 'woocommerce_bacs_account_fields', 'filter_function_name_1813', 10, 2 ); function filter_function_name_1813( $array, $order_id ){ // filter... return $array; }
- $array
- -
- $order_id
- -
Where the hook is called
woocommerce_bacs_account_fields
woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 308-333
$account_fields = apply_filters( 'woocommerce_bacs_account_fields', array( 'bank_name' => array( 'label' => __( 'Bank', 'woocommerce' ), 'value' => $bacs_account->bank_name, ), 'account_number' => array( 'label' => __( 'Account number', 'woocommerce' ), 'value' => $bacs_account->account_number, ), 'sort_code' => array( 'label' => $sortcode, 'value' => $bacs_account->sort_code, ), 'iban' => array( 'label' => __( 'IBAN', 'woocommerce' ), 'value' => $bacs_account->iban, ), 'bic' => array( 'label' => __( 'BIC', 'woocommerce' ), 'value' => $bacs_account->bic, ), ), $order_id );