I created a custom post type which I'll use as landing page for PPC. Now on that custom post type I would like to remove all the filters which are adding the social media buttons for example. I tried already with the following code but that did also remove the shortcode filter which I would like to keep on that custom post type. Here's the code I used:
function landingpage_remove_plugin_filters() {
global $wp_filter;
global $wp;
if ($wp->query_vars["post_type"] == 'landingpage') {
remove_all_filters('the_content', 'plugin_filters');
}
}
add_action('wp','landingpage_remove_plugin_filters');
Does anyone know what I need to change in order to keep the shortcode filters on that custom post type?
Thanks a lot for your efforts.
Daniel