Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor
CssVariableEvaluator::evaluateVariables
Replaces all CSS custom property references in inline style attributes with their corresponding values where defined in inline style attributes (either from the element itself or the nearest ancestor).
Метод класса: CssVariableEvaluator{}
Хуков нет.
Возвращает
$this.
Использование
$CssVariableEvaluator = new CssVariableEvaluator(); $CssVariableEvaluator->evaluateVariables(): self;
Код CssVariableEvaluator::evaluateVariables() CssVariableEvaluator::evaluateVariables WC 10.4.3
public function evaluateVariables(): self
{
return $this->evaluateVariablesInElementAndDescendants($this->getHtmlElement(), []);
}