WCPBC

Returns the main instance of WC_Product_Price_Based_Country to prevent the need to use globals.

Description

(WC_Product_Price_Based_Country) WCPBC(); 

Returns (WC_Product_Price_Based_Country)


Usage

  1. if ( !function_exists( 'WCPBC' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-product-price-based-on-countries/woocommerce-product-price-based-on-countries.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = WCPBC(); 
  7.  

Defined (1)

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

/woocommerce-product-price-based-on-countries.php  
  1. function WCPBC() { 
  2. return WC_Product_Price_Based_Country::instance();