woocommerce_gzd_direct_debit_sepa_xml_exporter_transfer_args

The WooCommerce Germanized woocommerce gzd direct debit sepa xml exporter transfer args hook.

Description

apply_filters( 'woocommerce_gzd_direct_debit_sepa_xml_exporter_transfer_args', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'amount' => $order->get_total(), 'debtorIban' => $this->clean_whitespaces( $this->maybe_decrypt( wc_gzd_get_crud_data( $order, 'direct_debit_iban' ) ) ), 'debtorBic' => $this->clean_whitespaces( $this->maybe_decrypt( wc_gzd_get_crud_data( $order, 'direct_debit_bic' ) ) ), 'debtorName' => wc_gzd_get_crud_data( $order, 'direct_debit_holder' ), 'debtorMandate' => $this->get_mandate_id( wc_gzd_get_crud_data( $order, 'id' ) ), date_i18n( "Y-m-d", strtotime( wc_gzd_get_crud_data( $order, 'order_date' ) ) ), 'debtorMandateSignDate' => date_i18n( 'd.m.Y', strtotime( wc_gzd_get_crud_data( $order, 'order_date' ) ) ), 'remittanceInformation' => apply_filters( 'woocommerce_germanized_direct_debit_purpose', sprintf( __( 'Order %s', 'woocommerce-germanized' ), $order->get_order_number() ), $order ), )
The array.

Usage

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

Defined (1)

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

/includes/gateways/direct-debit/class-wc-gzd-gateway-direct-debit.php  
  1. $directDebit->addTransfer( $payment_id, apply_filters( 'woocommerce_gzd_direct_debit_sepa_xml_exporter_transfer_args', array(