Topic: Add filter for markdown

I have  a question, how to add filter like {cut} for example for discus  like this {discus_comments} ?
Thanks.

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Add filter for markdown

addFilter('content', function($content) {
    $some_code = 'Some Code';
    return str_replace('{my_shortcode_here}', $some_code, $content);
});

usage:  {my_shortcode_here}

Please update Morfy to 1.0.2

Monstra Loves You! Give some love back!

Re: Add filter for markdown

Nice thanks

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website