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