Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ronalfy
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronalfy/cc1fee47ed3be90a4e47 to your computer and use it in GitHub Desktop.
Save ronalfy/cc1fee47ed3be90a4e47 to your computer and use it in GitHub Desktop.
WordPress Frizzly Plugin and WooCommerce Product Feeds
<?php
add_action( 'template_redirect', 'rjh_remove_frizzly_content' );
function rjh_remove_frizzly_content() {
if ( isset( $_GET[ 'woocommerce_gpf' ] ) ) {
remove_filter( 'the_content', 'frizzly_the_content_filter' );
remove_filter( 'the_excerpt', 'frizzly_the_excerpt_filter' );
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment