WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath

Translator::registerParserShortcut() public WC 1.0

Registers a shortcut parser.

{} It's a method of the class: Translator{}

No Hooks.

Return

$this. Nothing.

Usage

$Translator = new Translator();
$Translator->registerParserShortcut( $shortcut );
$shortcut(Parserinterface) (required)
-

Code of Translator::registerParserShortcut() WC 5.4.1

<?php
public function registerParserShortcut(ParserInterface $shortcut)
{
    $this->shortcutParsers[] = $shortcut;

    return $this;
}