I am trying to remove the shortcode from a specific post type, in this case link. I used this code on my functions.php but it removes the shortcode from the_content for every post type.

function remove_shortcodes( $content )
    return strip_shortcodes( $content );
add_filter( 'the_content', 'remove_shortcodes' );

is it possible to modify this so it only remove the shortcode from “Link” post type?


Read more here: Strip shortcode from specific post types (formats)


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , ,

Wordpress related questions and answers: