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:
@@ -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 '';
|
||||
|
Reference in New Issue
Block a user