Skip to main content
Wordpress

variable in do_shortcode()

//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);

0 Reviews

There are no reviews yet.