WordPress at a glance
function is not described

WC_Legacy_Cart::get_cart_url() public WC 1.0

Deprecated from version 2.5.0 in favor to wc_get_cart_url(). It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Gets the url to the cart page.

{} It's a method of the class: WC_Legacy_Cart{}

No Hooks.

Return

String. url to page

Usage

$WC_Legacy_Cart = new WC_Legacy_Cart();
$WC_Legacy_Cart->get_cart_url();

Changelog

Deprecated Since 2.5.0 in favor to wc_get_cart_url()

Code of WC_Legacy_Cart::get_cart_url() WC 5.0.0

<?php
public function get_cart_url() {
	wc_deprecated_function( 'WC_Cart::get_cart_url', '2.5', 'wc_get_cart_url' );
	return wc_get_cart_url();
}