Created
August 26, 2015 06:18
-
-
Save siddharthashok/682be99f403b245f5f56 to your computer and use it in GitHub Desktop.
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
//remove update notice for forked plugins | |
function remove_update_notifications($value) { | |
if ( isset( $value ) && is_object( $value ) ) { | |
unset($value->response[ plugin_basename(__FILE__) ]); | |
} | |
return $value; | |
} | |
add_filter('site_transient_update_plugins', 'remove_update_notifications'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment