wcdn_document_title

Output the document title depending on type.

Description

wcdn_document_title(); 

Usage

  1. if ( !function_exists( 'wcdn_document_title' ) ) { 
  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_document_title(); 
  7.  

Defined (1)

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

/includes/wcdn-template-functions.php  
  1. function wcdn_document_title() { 
  2. if( wcdn_get_template_type() == 'invoice' ) { 
  3. echo apply_filters( 'wcdn_document_title', __( 'Invoice', 'woocommerce-delivery-notes' ) ); 
  4. } elseif( wcdn_get_template_type() == 'delivery-note' ) { 
  5. echo apply_filters( 'wcdn_document_title', __( 'Delivery Note', 'woocommerce-delivery-notes' ) ); 
  6. } else { 
  7. echo apply_filters( 'wcdn_document_title', __( 'Order', 'woocommerce-delivery-notes' ) ); 
  8. }