Plugin that disables notifications of wp-kernel and wp-plugin updates


/ Published in: PHP
Save to your folder(s)

installed in a special folder /wp-content/mu-plugins and disabled auto-update plugins and core WP


Copy this code and paste it in your HTML
  1. <?php
  2. /**
  3.  * Plugin Name: Enable Major Core Updates
  4.  */
  5. add_filter( 'allow_major_auto_core_updates', '__return_true' );
  6. add_filter( 'auto_update_plugin', '__return_false' );
  7. remove_action( 'load-update-core.php', 'wp_update_plugins' );
  8. add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
  9. wp_clear_scheduled_hook( 'wp_update_plugins' );
  10.  
  11. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.