Automattic\WooCommerce\Vendor\Sabberworm\CSS\CSSList

Document::getAllRuleSetspublicWC 1.0

Returns all RuleSet objects recursively found in the tree, no matter how deeply nested the rule sets are.

Метод класса: Document{}

Хуков нет.

Возвращает

Массив. RuleSet>

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

$Document = new Document();
$Document->getAllRuleSets();

Код Document::getAllRuleSets() WC 10.9.1

public function getAllRuleSets()
{
    /** @var array<int, RuleSet> $aResult */
    $aResult = [];
    $this->allRuleSets($aResult);
    return $aResult;
}