wcdn_get_template_content

Output the template part.

Description

wcdn_get_template_content( (string) $name, (null) $args = null ); 

Parameters (2)

0. $name (string)
The name.
1. $args — Optional. (null) => null
The args.

Usage

  1. if ( !function_exists( 'wcdn_get_template_content' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-print-invoice-delivery-note/includes/wcdn-template-functions.php'; 
  3.  
  4. // The name. 
  5. $name = ''; 
  6.  
  7. // The args. 
  8. $args = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wcdn_get_template_content($name, $args); 
  12.  

Defined (1)

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

/includes/wcdn-template-functions.php  
  1. function wcdn_get_template_content( $name, $args = null ) { 
  2. global $wcdn; 
  3. wc_get_template( $name, $args, $wcdn->print->template_path_theme, $wcdn->print->template_path_plugin );