Automattic\WooCommerce\Blocks\Utils

CartCheckoutUtils::is_cart_pagepublic staticWC 1.0

Returns true on the cart page.

Метод класса: CartCheckoutUtils{}

Хуков нет.

Возвращает

true|false.

Использование

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

Код CartCheckoutUtils::is_cart_page() WC 10.9.1

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