wc_gzd_get_gzd_product

The WooCommerce Germanized wc gzd get product function.

Description

wc_gzd_get_gzd_product( $product ); 

Parameters (1)

0. $product
The product.

Usage

  1. if ( !function_exists( 'wc_gzd_get_gzd_product' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-germanized/includes/wc-gzd-product-functions.php'; 
  3.  
  4. // The product. 
  5. $product = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wc_gzd_get_gzd_product($product); 
  9.  

Defined (1)

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

/includes/wc-gzd-product-functions.php  
  1. function wc_gzd_get_gzd_product( $product ) { 
  2.  
  3. if ( ! isset( $product->gzd_product ) || ! is_object( $product->gzd_product ) ) 
  4. $product->gzd_product = WC()->product_factory->get_gzd_product( $product ); 
  5.  
  6. return $product->gzd_product;