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

EmptyStringParser() WC 1.0

CSS selector class parser shortcut.

This shortcut ensure compatibility with previous version.

  • The parser fails to parse an empty string.
  • In the previous version, an empty string matches each tags.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.

Хуков нет.


Null. Ничего.


$EmptyStringParser = new EmptyStringParser();
// use class methods


  1. parse($source)

Код EmptyStringParser: woocommerce/vendor/symfony/css-selector/Parser/Shortcut/EmptyStringParser.php WC 4.3.1

class EmptyStringParser implements ParserInterface
     * {@inheritdoc}
    public function parse($source)
        // Matches an empty string
        if ('' == $source) {
            return [new SelectorNode(new ElementNode(null, '*'))];

        return [];