Wccal_Product_External

The WooCommerce Cloak Affiliate Links Wccal Product External class.

Defined (1)

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

/class-wccal-product-external.php  
  1. class Wccal_Product_External extends WC_Product_External { 
  2. public function get_product_url( $context = 'view' ) { 
  3. $base = Wccal::get_affiliate_base(); 
  4. if ( get_option( 'permalink_structure' ) ) { 
  5. return user_trailingslashit( home_url() . '/' . $base . '/' . $this->id ); 
  6. } else { 
  7. return home_url() . '/index.php?' . $base . '=' . $this->id;