woocommerce_product_post_type_link

The WooCommerce woocommerce product post type link function.

Description

woocommerce_product_post_type_link( $permalink, $post ); 

Parameters (2)

0. $permalink
The permalink.
1. $post
The post.

Usage

  1. if ( !function_exists( 'woocommerce_product_post_type_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The permalink. 
  5. $permalink = null; 
  6.  
  7. // The post. 
  8. $post = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = woocommerce_product_post_type_link($permalink, $post); 
  12.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_product_post_type_link( $permalink, $post ) { 
  2. return wc_product_post_type_link( $permalink, $post );