wcdn_get_print_link

Return print page link.

Description

wcdn_get_print_link( $order_ids, (string) $template_type = 'order', (null) $order_email = null ); 

Parameters (3)

0. $order_ids
The order ids.
1. $template_type — Optional. (string) => 'order'
The template type.
2. $order_email — Optional. (null) => null
The order email.

Usage

  1. if ( !function_exists( 'wcdn_get_print_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-print-invoice-delivery-note/includes/wcdn-template-functions.php'; 
  3.  
  4. // The order ids. 
  5. $order_ids = null; 
  6.  
  7. // The template type. 
  8. $template_type = 'order'; 
  9.  
  10. // The order email. 
  11. $order_email = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = wcdn_get_print_link($order_ids, $template_type, $order_email); 
  15.  

Defined (1)

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

/includes/wcdn-template-functions.php  
  1. function wcdn_get_print_link( $order_ids, $template_type = 'order', $order_email = null ) { 
  2. global $wcdn; 
  3. return $wcdn->print->get_print_page_url( $order_ids, $template_type, $order_email );