diff --git a/src/flextype/core/Parsers/Shortcodes/UrlShortcode.php b/src/flextype/core/Parsers/Shortcodes/UrlShortcode.php index 11acac73..42b40209 100644 --- a/src/flextype/core/Parsers/Shortcodes/UrlShortcode.php +++ b/src/flextype/core/Parsers/Shortcodes/UrlShortcode.php @@ -51,6 +51,16 @@ parsers()->shortcodes()->addHandler('getAbsoluteUrl', static function () { return getAbsoluteUrl(); }); +// Shortcode: getProjectUrl +// Usage: (getProjectUrl) +parsers()->shortcodes()->addHandler('getProjectUrl', static function () { + if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.url.enabled')) { + return ''; + } + + return getProjectUrl(); +}); + // Shortcode: getUriString // Usage: (getUriString) parsers()->shortcodes()->addHandler('getUriString', static function () {