Created
March 13, 2020 22:42
-
-
Save Njengah/d0a85c9d271e0d399b0bd9001d73123e to your computer and use it in GitHub Desktop.
Remove WordPress plugin notification for a specific plugin
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 | |
/** | |
* Remove Plugin Update Notifications for Specific Plugin : example-plugin-folder/example-plugin-base-file.php | |
*/ | |
function njengah_remove_plugin_update_notifications($value) { | |
if ( isset( $value ) && is_object( $value ) ) { | |
unset( $value->response[ 'example-plugin-folder/example-plugin-base-file.php' ] ); | |
} | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'njengah_remove_plugin_update_notifications' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment