Automattic\WooCommerce\Blocks\Utils
CartCheckoutUtils::is_checkout_page
Returns true on the checkout page.
Method of the class: CartCheckoutUtils{}
No Hooks.
Returns
true|false.
Usage
$result = CartCheckoutUtils::is_checkout_page(): bool;
CartCheckoutUtils::is_checkout_page() CartCheckoutUtils::is checkout page code WC 10.7.0
public static function is_checkout_page(): bool {
if ( null === self::$is_checkout_page ) {
self::$is_checkout_page = self::is_page_type( 'checkout' );
}
return true === self::$is_checkout_page;
}