sgsoft-studio / shortcode
WebEd shortcode integration
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 6 218
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
README
####Documentation Shortcode already enabled by WebEd. You cannot turn off it.
https://github.com/webwizo/laravel-shortcodes
####Quick use To register shortcode, just put this in your module service provider:
add_shortcode('revslider', function ($shortcode, $content, $compiler, $name) {
/**
* @var \WebEd\Base\Shortcode\Compilers\Shortcode $shortcode
* @var string $content
* @var \WebEd\Base\Shortcode\Compilers\ShortcodeCompiler $compiler
* @var string $name
*/
// put your magic here...
});
Compile your shortcode
do_shortcode('some string with shortcode [revslider id=17 class="revolution-slider"]', $stripContent = false);