_wpsc_action_canonical_url

Make sure we fix the canonical URL of the single product.

Description

_wpsc_action_canonical_url(); 

The canonical URL is broken when single product permalink is prefixed by product category.


Usage

  1. if ( !function_exists( '_wpsc_action_canonical_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-components/theme-engine-v2/helpers/template-engine.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _wpsc_action_canonical_url(); 
  7.  

Defined (1)

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

/wpsc-components/theme-engine-v2/helpers/template-engine.php