Skip to content

Instantly share code, notes, and snippets.

@zottto
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zottto/2a9e784ea1a4538e5d94 to your computer and use it in GitHub Desktop.
Save zottto/2a9e784ea1a4538e5d94 to your computer and use it in GitHub Desktop.
WordPress: Deactivate automatic plugin updates
<?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