/** * Return the permalink of a product. * * This function is usually used inside a hook action. * * @since 4.0 * @uses _wpsc_filter_product_permalink() * * @param string $permalink * @param object $post * @param bool $leavename * @param bool $sample * @return string */ function wpsc_filter_product_permalink($permalink, $post, $leavename, $sample) { return _wpsc_filter_product_permalink($permalink, $post, $leavename, $sample, false); }
/** * Return the canonical permalink of a product. * * This function is usually used inside a hook action. * * @since 4.0 * @uses _wpsc_filter_product_permalink() * * @param string $permalink * @param object $post * @param bool $leavename * @param bool $sample * @return string */ function wpsc_filter_product_permalink_canonical($permalink, $post, $leavename, $sample) { return _wpsc_filter_product_permalink($permalink, $post, $leavename, $sample, true); }