WC_Legacy_Cart::get_checkout_urlpublicWC 1.0

Deprecated since 2.5.0 in favor to wc_get_checkout_url(). It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Gets the url to the checkout page.

Method of the class: WC_Legacy_Cart{}

No Hooks.

Returns

String. url to page

Usage

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

Changelog

Deprecated since 2.5.0 in favor to wc_get_checkout_url()

WC_Legacy_Cart::get_checkout_url() code WC 9.9.3

public function get_checkout_url() {
	wc_deprecated_function( 'WC_Cart::get_checkout_url', '2.5', 'wc_get_checkout_url' );
	return wc_get_checkout_url();
}