Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath

XPathExpr::addConditionpublicWC 1.0

Method of the class: XPathExpr{}

No Hooks.

Returns

$this.

Usage

$XPathExpr = new XPathExpr();
$XPathExpr->addCondition( $condition ): self;
$condition(string) (required)
.

XPathExpr::addCondition() code WC 10.5.0

public function addCondition(string $condition): self
{
    $this->condition = $this->condition ? sprintf('(%s) and (%s)', $this->condition, $condition) : $condition;

    return $this;
}