Last active
August 29, 2015 14:18
-
-
Save zottto/2a9e784ea1a4538e5d94 to your computer and use it in GitHub Desktop.
WordPress: Deactivate automatic plugin 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
<?php | |
/** | |
* Plugin Name: Deactivate automatic plugin updates | |
* Description: Deactivates the possibility to automatically update a plugin. | |
* Plugin URI: http://www.wp-sicherheit.info/ | |
* Version: 1.0 | |
* Author: Marc Nilius | |
* Author URI: http://www.wp-sicherheit.info/ | |
* Licence: GPL 2 | |
* License URI: http://opensource.org/licenses/GPL-2.0 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
// Add filter to not allow automatic plugin updates | |
add_filter( 'auto_update_plugin', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment