Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath

Translator::registerParserShortcutpublicWC 1.0

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

Хуков нет.

Возвращает

$this.

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

$Translator = new Translator();
$Translator->registerParserShortcut( $shortcut ): self;
$shortcut(ParserInterface) (обязательный)
.

Код Translator::registerParserShortcut() WC 10.5.0

public function registerParserShortcut(ParserInterface $shortcut): self
{
    $this->shortcutParsers[] = $shortcut;

    return $this;
}