quanzo / x51-shortcode
Implementation shortcodes
Installs: 8
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/quanzo/x51-shortcode
Requires
- php: >=5.6
- quanzo/x51-functions: *
This package is auto-updated.
Last update: 2025-09-29 02:42:36 UTC
README
Add
$shortcodes = \x51\classes\shortcode\Shortcode::getInstance();
$shortcodes->add('bold', function ($arParams, $content = ''){
return '<strong>'.$content.'</strong>';
});
Processing
echo $shortcodes->process($content);
Remove
$shortcodes->remove('bold');
$shortcodes->clear();
Exist
if ($shortcodes->exists('bold')) {
....
}