woocommerce_get_cart_url filter-hookWC 2.5.0

Gets the url to the cart page.

Usage

add_filter( 'woocommerce_get_cart_url', 'wp_kama_woocommerce_get_cart_url_filter' );

/**
 * Function for `woocommerce_get_cart_url` filter-hook.
 * 
 * @param  $wc_get_page_permalink 
 *
 * @return 
 */
function wp_kama_woocommerce_get_cart_url_filter( $wc_get_page_permalink ){

	// filter...
	return $wc_get_page_permalink;
}
$wc_get_page_permalink
-

Changelog

Since 2.5.0 Introduced.

Where the hook is called

wc_get_cart_url()
woocommerce_get_cart_url
woocommerce/includes/wc-core-functions.php 1501
return apply_filters( 'woocommerce_get_cart_url', wc_get_page_permalink( 'cart' ) );

Where the hook is used in WooCommerce

Usage not found.