woocommerce_bacs_account_fields filter-hookWC 1.0

BACS account fields shown on the thanks page and in emails.

Usage

add_filter( 'woocommerce_bacs_account_fields', 'wp_kama_woocommerce_bacs_account_fields_filter', 10, 2 );

/**
 * Function for `woocommerce_bacs_account_fields` filter-hook.
 * 
 * @param  $array    
 * @param  $order_id 
 *
 * @return 
 */
function wp_kama_woocommerce_bacs_account_fields_filter( $array, $order_id ){

	// filter...
	return $array;
}
$array
-
$order_id
-

Where the hook is called

WC_Gateway_BACS::bank_details()
woocommerce_bacs_account_fields
woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 309-334
$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
);

Where the hook is used in WooCommerce

Usage not found.