woocommerce_bacs_accounts

The WooCommerce woocommerce bacs accounts hook.

Description

apply_filters( 'woocommerce_bacs_accounts', (number) $this_account_details ); 

Parameters (1)

0. $this_account_details (number)
The this account details.

Usage

To run the hook, copy the example below.
  1. $this_account_details = apply_filters( 'woocommerce_bacs_accounts', $this_account_details ); 
  2.  
  3. if ( !empty( $this_account_details ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_bacs_accounts callback 
  2. function filter_woocommerce_bacs_accounts( $this_account_details ) { 
  3. // make filter magic happen here... 
  4. return $this_account_details
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_bacs_accounts', 'filter_woocommerce_bacs_accounts', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_bacs_accounts', 'filter_woocommerce_bacs_accounts', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/gateways/bacs/class-wc-gateway-bacs.php  
  1. $bacs_accounts = apply_filters( 'woocommerce_bacs_accounts', $this->account_details );