Automattic\WooCommerce\Blocks\BlockTypes

Checkout::is_checkout_endpoint()protectedWC 1.0

Check if we're viewing a checkout page endpoint, rather than the main checkout page itself.

Method of the class: Checkout{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_checkout_endpoint();

Checkout::is_checkout_endpoint() code WC 8.9.0

protected function is_checkout_endpoint() {
	return is_wc_endpoint_url( 'order-pay' ) || is_wc_endpoint_url( 'order-received' );
}