gdpc_get_product_page_url($product_id, $page_name = "")
- $product_id: post/product id.
- $page_name: page type name: ‘specifications’, ‘related’, ‘review’, ‘reviews’, ‘media’.
Generate permalink for product based on product id (or post id) and additional page type. If the specified ID is not product related it will give normal permalink.
Function returns: string generated URL.