Automattic\WooCommerce\Blocks\BlockTypes
Checkout::is_checkout_endpoint()
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() Checkout::is checkout endpoint code WC 9.7.1
protected function is_checkout_endpoint() { return is_wc_endpoint_url( 'order-pay' ) || is_wc_endpoint_url( 'order-received' ); }