Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rafalkonofalski/d40c941788979a70a5dc to your computer and use it in GitHub Desktop.
Save rafalkonofalski/d40c941788979a70a5dc to your computer and use it in GitHub Desktop.

Revisions

  1. rafalkonofalski revised this gist Dec 12, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion wp_hide_plugin_update_all_notifications.php
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    function remove_core_updates() {
    global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
    global $wp_version;
    return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
    }
    add_filter('pre_site_transient_update_core','remove_core_updates');
    add_filter('pre_site_transient_update_plugins','remove_core_updates');
  2. rafalkonofalski created this gist Dec 12, 2014.
    6 changes: 6 additions & 0 deletions wp_hide_plugin_update_all_notifications.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    function remove_core_updates() {
    global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
    }
    add_filter('pre_site_transient_update_core','remove_core_updates');
    add_filter('pre_site_transient_update_plugins','remove_core_updates');
    add_filter('pre_site_transient_update_themes','remove_core_updates');