Created
August 14, 2019 06:38
-
-
Save alordiel/69d3545b5e1289fa5f082f95282445c5 to your computer and use it in GitHub Desktop.
Disable autoupdate and updates for paid 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 | |
define( 'automatic_updater_disabled', true ); | |
define( 'wp_auto_update_core', false ); | |
add_filter('site_transient_update_plugins', 'remove_update_notification'); | |
function remove_update_notification($value) | |
{ | |
unset($value->response['memberpress/memberpress.php']); | |
unset($value->response['wp-migrate-db-pro/wp-migrate-db-pro.php']); | |
unset($value->response['memberpress-mailchimp-tags/main.php']); | |
unset($value->response['paypal-ipn/paypal-ipn-for-wordpress.php']); | |
unset($value->response['admin-menu-editor-pro/menu-editor.php']); | |
return $value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment