Automattic\WooCommerce\Blocks\Utils

CartCheckoutUtils::is_cart_pagepublic staticWC 1.0

Returns true on the cart page.

Method of the class: CartCheckoutUtils{}

No Hooks.

Returns

true|false.

Usage

$result = CartCheckoutUtils::is_cart_page(): bool;

CartCheckoutUtils::is_cart_page() code WC 9.9.3

public static function is_cart_page(): bool {
	if ( null === self::$is_cart_page ) {
		self::$is_cart_page = self::is_page_type( 'cart' );
	}
	return true === self::$is_cart_page;
}