shopp_url

filters the url result of the shopp_url() utility function, which generates canonical storefront URLs that respects the WordPress permalink settings.

add_filter( 'shopp_url', [callback] )

@param string $url the url result of the shopp_url() utility function, which generates canonical storefront URLs that respects the WordPress permalink settings.

Description

filters the url result of the shopp_url() utility function, which generates canonical storefront URLs that respects the WordPress permalink settings.

Example

// register filter callback
add_filter('shopp_url', 'shopp_url_fltr');

// create filter function
function shopp_url_fltr( $url ) {
    $url = str_replace('http://','https://',$url);
    return $url;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar