1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 21:26:48 +02:00

feat(shortcodes): update [entries-fetch] shortcode

This commit is contained in:
Awilum
2022-04-14 12:40:14 +03:00
parent 9a2e0a12aa
commit c1c470ad4d

View File

@@ -24,7 +24,7 @@ use function entries;
use function parsers;
use function registry;
// Shortcode: [entries_fetch id="entry-id" field="field-name" default="default-value"]
// Shortcode: [entries-fetch id="entry-id" field="field-name" default="default-value"]
parsers()->shortcodes()->addHandler('entries-fetch', static function (ShortcodeInterface $s) {
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.entries.enabled')) {
return '';