wcdn_company_name

Return default title name of Delivery Note.

Description

wcdn_company_name(); 

Usage

  1. if ( !function_exists( 'wcdn_company_name' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-print-invoice-delivery-note/includes/wcdn-template-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wcdn_company_name(); 
  7.  

Defined (1)

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

/includes/wcdn-template-functions.php  
  1. function wcdn_company_name() { 
  2. global $wcdn; 
  3. $name = trim( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'custom_company_name' ) ); 
  4. if( !empty( $name ) ) { 
  5. echo apply_filters( 'wcdn_company_name', stripslashes( wptexturize( $name ) ) ); 
  6. } else { 
  7. echo apply_filters( 'wcdn_company_name', get_bloginfo( 'name' ) );