Created
December 17, 2015 19:41
-
-
Save blobaugh/5365f241fd29914f2475 to your computer and use it in GitHub Desktop.
Prevents WP SEO from requesting updates
This file contains 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
add_filter( 'site_transient_update_plugins', 'wds_wp_seo_no_update' ); | |
function wds_wp_seo_no_update( $value ) { | |
if ( empty( $value ) || empty( $value->response['wordpress-seo/wp-seo.php'] ) ) { | |
return $value; | |
} | |
unset( $value->response['wordpress-seo/wp-seo.php'] ); | |
return $value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment