Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\XPath

Translator::registerParserShortcut │ public │ WC 1.0

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

Хуков нет.

Возвращает

$this.

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

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

Код Translator::registerParserShortcut() WC 11.2.2

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

    return $this;
}