Wordpress

variable in do_shortcode()

By mayo 23, 2018 mayo 31st, 2020 No Comments

//function.php

function the_content_filter( $content) {
    return do_shortcode( $content);
}

add_filter( ‘the_content’, ‘the_content_filter’, 1000);

the just use it
//example

echo do_shortcode($variable);

Leave a Reply