WordPress at Your Fingertips

wc_get_cart_url() WC 1.0

Gets the url to the cart page.

Hooks from the function
Return

String. Url to cart page

Usage

wc_get_cart_url();

Changelog

Since 2.5.0 Introduced.

Code of wc_get_cart_url() WC 5.7.0

function wc_get_cart_url() {
	return apply_filters( 'woocommerce_get_cart_url', wc_get_page_permalink( 'cart' ) );
}

Link (URL)

WooCommerce

No comments
    Log In