Automattic\WooCommerce\Blocks\Domain\Services\OnboardingTasks
ReviewCheckoutTask::has_cart_or_checkout_block()
Check if the store uses blocks on the cart or checkout page.
Method of the class: ReviewCheckoutTask{}
No Hooks.
Return
true|false
.
Usage
// private - for code of main (parent) class only $result = $this->has_cart_or_checkout_block();
ReviewCheckoutTask::has_cart_or_checkout_block() ReviewCheckoutTask::has cart or checkout block code WC 9.2.3
private function has_cart_or_checkout_block() { return $this->has_cart_block() || $this->has_checkout_block(); }