Automattic\WooCommerce\Internal\Api

QueryDepthRule::getVisitor │ public │ WC 1.0

Reset the per-document memoization before delegating to the stock visitor.

Method of the class: QueryDepthRule{}

No Hooks.

Returns

array. The visitor definition.

Usage

$QueryDepthRule = new QueryDepthRule();
$QueryDepthRule->getVisitor( $context ): array;
$context(QueryValidationContext) (required)
The validation context.

QueryDepthRule::getVisitor() code WC 11.1.2

public function getVisitor( QueryValidationContext $context ): array {
	$this->fragment_depths = array();

	return parent::getVisitor( $context );
}