wc_gzd_get_legal_text_service_email_notice

The WooCommerce Germanized wc gzd get legal text service email notice function.

Description

wc_gzd_get_legal_text_service_email_notice(); 

Usage

  1. if ( !function_exists( 'wc_gzd_get_legal_text_service_email_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-germanized/includes/wc-gzd-cart-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_gzd_get_legal_text_service_email_notice(); 
  7.  

Defined (1)

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

/includes/wc-gzd-cart-functions.php  
  1. function wc_gzd_get_legal_text_service_email_notice() { 
  2. $text = get_option( 'woocommerce_gzd_order_confirmation_legal_service_notice' ); 
  3.  
  4. if ( $text ) { 
  5. $text = str_replace(  
  6. array( '{link}', '{/link}' ),  
  7. array(  
  8. '<a href="' . esc_url( get_permalink( wc_get_page_id( 'revocation' ) ) ) . '" target="_blank">',  
  9. '</a>' 
  10. ),  
  11. $text 
  12. ); 
  13. return $text;