WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregate::hasTag() public WC 1.0

{@inheritdoc}

{} It's a method of the class: DefinitionAggregate{}

No Hooks.

Return

null. Nothing.

Usage

$DefinitionAggregate = new DefinitionAggregate();
$DefinitionAggregate->hasTag( $tag ) : bool;
$tag(string) (required)
-

Code of DefinitionAggregate::hasTag() WC 5.5.2

<?php
public function hasTag(string $tag) : bool
{
    foreach ($this->getIterator() as $definition) {
        if ($definition->hasTag($tag)) {
            return true;
        }
    }

    return false;
}