1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 13:46:42 +02:00

feat(shortcodes): update php shortcode

This commit is contained in:
Awilum
2022-05-25 21:05:00 +03:00
parent 574869528f
commit de82ec1bba

View File

@@ -18,7 +18,8 @@ namespace Flextype\Parsers\Shortcodes;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
// Shortcode: [php] php code here [/php]
// Shortcode: php
// Usage: (php) php code here (/php)
parsers()->shortcodes()->addHandler('php', static function (ShortcodeInterface $s) {
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.php.enabled')) {
return '';