Automattic\WooCommerce\Blocks\Utils

CartCheckoutUtils::is_cart_page │ public static │ WC 1.0

Returns true on the cart page.

Method of the class: CartCheckoutUtils{}

No Hooks.

Returns

bool.

Usage

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

CartCheckoutUtils::is_cart_page() code WC 11.3.0

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;
}