Automattic\WooCommerce\Blocks\Domain\Services

CheckoutLink::validate_checkout_linkprotectedWC 1.0

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() code WC 10.7.0

protected function validate_checkout_link() {
	$products = $this->get_products_from_checkout_link();

	return ! empty( $products );
}