woocommerce_gzd_forwarding_fee_checkout_text

The WooCommerce Germanized woocommerce gzd forwarding fee checkout text hook.

Description

Parameters (1)

0. $tr_td_colspan_2_sprintf_plus_s_forwarding_fee_charged_by_the_transport_agent_woocommerce_germanized_wc_price_gateway_get_option_forwarding_fee_td_tr — Optional. (string) => '' . sprintf( __( 'Plus %s forwarding fee (charged by the transport agent)', 'woocommerce-germanized' ), wc_price( $gateway->get_option( 'forwarding_fee' ) ) ) . ''
The tr td colspan 2 sprintf plus s forwarding fee charged by the transport agent woocommerce germanized wc price gateway get option forwarding fee td tr.

Usage

To run the hook, copy the example below.
  1. $tr_td_colspan_2_sprintf_plus_s_forwarding_fee_charged_by_the_transport_agent_woocommerce_germanized_wc_price_gateway_get_option_forwarding_fee_td_tr = apply_filters( 'woocommerce_gzd_forwarding_fee_checkout_text', $tr_td_colspan_2_sprintf_plus_s_forwarding_fee_charged_by_the_transport_agent_woocommerce_germanized_wc_price_gateway_get_option_forwarding_fee_td_tr ); 
  2.  
  3. if ( !empty( $tr_td_colspan_2_sprintf_plus_s_forwarding_fee_charged_by_the_transport_agent_woocommerce_germanized_wc_price_gateway_get_option_forwarding_fee_td_tr ) ) { 
  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_forwarding_fee_checkout_text callback 
  2. function filter_woocommerce_gzd_forwarding_fee_checkout_text( $tr_td_colspan_2_sprintf_plus_s_forwarding_fee_charged_by_the_transport_agent_woocommerce_germanized_wc_price_gateway_get_option_forwarding_fee_td_tr ) { 
  3. // make filter magic happen here... 
  4. return $tr_td_colspan_2_sprintf_plus_s_forwarding_fee_charged_by_the_transport_agent_woocommerce_germanized_wc_price_gateway_get_option_forwarding_fee_td_tr
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_gzd_forwarding_fee_checkout_text', 'filter_woocommerce_gzd_forwarding_fee_checkout_text', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_gzd_forwarding_fee_checkout_text', 'filter_woocommerce_gzd_forwarding_fee_checkout_text', 10, 1 ); 

Defined (1)

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

/includes/wc-gzd-template-functions.php  
  1. echo apply_filters( 'woocommerce_gzd_forwarding_fee_checkout_text', '<tr><td colspan="2">' . sprintf( __( 'Plus %s forwarding fee (charged by the transport agent)', 'woocommerce-germanized' ), wc_price( $gateway->get_option( 'forwarding_fee' ) ) ) . '</td></tr>' );