Created
September 21, 2017 17:40
-
-
Save sybrew/fcfc8636119f44d7c5b274c14cc52a39 to your computer and use it in GitHub Desktop.
Unsets NextScripts: SNAP from detected plugins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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