woocommerce_gzd_order_confirmation_service_notice

The WooCommerce Germanized woocommerce gzd order confirmation service notice hook.

Description

apply_filters( 'woocommerce_gzd_order_confirmation_service_notice', (string) $div_class_gzd_service_notice_text_text_div, (unknown) $order ); 

Parameters (2)

0. $div_class_gzd_service_notice_text_text_div — Optional. (string) => '
' . $text . '
'
The div class gzd service notice text text div.
1. $order (unknown)
The order.

Usage

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

Defined (1)

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

/includes/class-wc-gzd-emails.php  
  1. echo wpautop( apply_filters( 'woocommerce_gzd_order_confirmation_service_notice', '<div class="gzd-service-notice-text">' . $text . '</div>', $order ) );