Is there a way I can return the shortcode text instead of the output.
My code function is hooked into 'the_content' and I know if my function contain shortcode it will automatically generate the output. I just want to output shortcode text e.g [gallery]
add_filter( 'the_content', 'show_on_front', 10 );
function show_on_front( $content ) {
$content .= 'this is example of shortcode : [gallery]';
return $content;
}
Regards,