Viewing 1 replies (of 1 total)
  • Thread Starter Josh Kohlbach

    (@jkohlbach)

    And seconds after I posted this I came up with a solution:

    function dd_exclude_from_woocommerce() {
    	if(is_woocommerce()) {
    		remove_filter('the_excerpt', 'dd_hook_wp_content');
    		remove_filter('the_content', 'dd_hook_wp_content');
    	}
    }
    add_action('template_redirect', 'dd_exclude_from_woocommerce');

    Would be nice if you could add a switch in the options though…

Viewing 1 replies (of 1 total)
  • The topic ‘Disable digg digg on custom post types’ is closed to new replies.