WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Pelago\Emogrifier\Utilities

CssConcatenator::append() public WC 1.0

Appends a declaration block to the CSS.

Это метод класса: CssConcatenator{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$CssConcatenator = new CssConcatenator();
$CssConcatenator->append( $selectors, $declarationsBlock, $media );
$selectors(массив) (обязательный)
Array of selectors for the rule, e.g. ["ul", "ol", "p:first-child"].
$declarationsBlock(строка) (обязательный)
The property declarations, e.g. "margin-top: 0.5em; padding: 0".
$media(строка)
The media query for the rule, e.g. "@media screen and (max-width:639px)", or an empty string if none.
По умолчанию: ''

Код CssConcatenator::append() WC 4.5.2

woocommerce/vendor/pelago/emogrifier/src/Emogrifier/Utilities/CssConcatenator.php
<?php
public function append(array $selectors, $declarationsBlock, $media = '')
{
    $selectorsAsKeys = \array_flip($selectors);

    $mediaRule = $this->getOrCreateMediaRuleToAppendTo($media);
    $lastRuleBlock = \end($mediaRule->ruleBlocks);

    $hasSameDeclarationsAsLastRule = $lastRuleBlock !== false
        && $declarationsBlock === $lastRuleBlock->declarationsBlock;
    if ($hasSameDeclarationsAsLastRule) {
        $lastRuleBlock->selectorsAsKeys += $selectorsAsKeys;
    } else {
        $hasSameSelectorsAsLastRule = $lastRuleBlock !== false
            && self::hasEquivalentSelectors($selectorsAsKeys, $lastRuleBlock->selectorsAsKeys);
        if ($hasSameSelectorsAsLastRule) {
            $lastDeclarationsBlockWithoutSemicolon = \rtrim(\rtrim($lastRuleBlock->declarationsBlock), ';');
            $lastRuleBlock->declarationsBlock = $lastDeclarationsBlockWithoutSemicolon . ';' . $declarationsBlock;
        } else {
            $mediaRule->ruleBlocks[] = (object)\compact('selectorsAsKeys', 'declarationsBlock');
        }
    }
}