woocommerce_gzd_template_digital_delivery_time_text

The WooCommerce Germanized woocommerce gzd template digital delivery time text function.

Description

woocommerce_gzd_template_digital_delivery_time_text( $text, $product ); 

Parameters (2)

0. $text
The text.
1. $product
The product.

Usage

  1. if ( !function_exists( 'woocommerce_gzd_template_digital_delivery_time_text' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-germanized/includes/wc-gzd-template-functions.php'; 
  3.  
  4. // The text. 
  5. $text = null; 
  6.  
  7. // The product. 
  8. $product = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = woocommerce_gzd_template_digital_delivery_time_text($text, $product); 
  12.  

Defined (1)

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

/includes/wc-gzd-template-functions.php  
  1. function woocommerce_gzd_template_digital_delivery_time_text( $text, $product ) { 
  2.  
  3. if ( $product->is_downloadable() && get_option( 'woocommerce_gzd_display_digital_delivery_time_text' ) !== '' ) 
  4. return apply_filters( 'woocommerce_germanized_digital_delivery_time_text', get_option( 'woocommerce_gzd_display_digital_delivery_time_text' ), $product ); 
  5.  
  6. return $text; 
  7.