Automattic\WooCommerce\Vendor\Sabberworm\CSS\CSSList

Document::getSelectorsBySpecificitypublicWC 1.0

Returns all Selector objects with the requested specificity found recursively in the tree.

Note that this does not yield the full DeclarationBlock that the selector belongs to (and, currently, there is no way to get to that).

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

Хуков нет.

Возвращает

Массив. Selector>

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

$Document = new Document();
$Document->getSelectorsBySpecificity( $sSpecificitySearch );
$sSpecificitySearch(строка|null)
An optional filter by specificity. May contain a comparison operator and a number or just a number (defaults to "==").
По умолчанию: null

Код Document::getSelectorsBySpecificity() WC 10.9.1

public function getSelectorsBySpecificity($sSpecificitySearch = null)
{
    /** @var array<int, Selector> $aResult */
    $aResult = [];
    $this->allSelectors($aResult, $sSpecificitySearch);
    return $aResult;
}