Skip to content

Instantly share code, notes, and snippets.

@sybrew
Created September 21, 2017 17:40
Show Gist options
  • Save sybrew/fcfc8636119f44d7c5b274c14cc52a39 to your computer and use it in GitHub Desktop.
Save sybrew/fcfc8636119f44d7c5b274c14cc52a39 to your computer and use it in GitHub Desktop.
Unsets NextScripts: SNAP from detected plugins
<?php
// Don't include the php tag.
//= First filter: Unsets NextScripts SNAP from check.
add_filter( 'the_seo_framework_conflicting_plugins', function( $plugins ) {
unset( $plugins['open_graph']['NextScripts SNAP'] );
return $plugins;
} );
//= Second filter: If the above filter doesn't work, use this:
add_filter( 'the_seo_framework_og_plugin_detected', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment