Automattic\WooCommerce\Blocks\Domain\Services
CheckoutLink::validate_checkout_link
Validate the checkout link.
Method of the class: CheckoutLink{}
No Hooks.
Returns
true|false. True if the checkout link is valid, false otherwise.
Usage
// protected - for code of main (parent) or child class $result = $this->validate_checkout_link();
CheckoutLink::validate_checkout_link() CheckoutLink::validate checkout link code WC 10.7.0
protected function validate_checkout_link() {
$products = $this->get_products_from_checkout_link();
return ! empty( $products );
}