WPO_WCPDF

Returns the main instance of WooCommerce PDF Invoices & Packing Slips to prevent the need to use globals.

Description

(WPO_WCPDF) WPO_WCPDF(); 

Returns (WPO_WCPDF)


Usage

  1. if ( !function_exists( 'WPO_WCPDF' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = WPO_WCPDF(); 
  7.  

Defined (1)

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

/woocommerce-pdf-invoices-packingslips.php  
  1. function WPO_WCPDF() { 
  2. return WooCommerce_PDF_Invoices::instance();