src/Helper/ShortCodesProcessor.php
public function registerShortCode($tag, $callback)
    {
        if (is_callable($callback)) {
            $this->shortCodesTags[$tag] = $callback;
        }

        return $this;
    }
public function registerShortCode($tag, $callback)
    {
        if (is_callable($callback)) {
            $this->shortCodesTags[$tag] = $callback;
        }

        return $this;
    }
Register short code

@param string   $tag      tag name
@param callable $callback callback that will be triggered when tag will be processed

@return $this