Title: Hide plugin updates
Last modified: August 16, 2019

---

# Hide plugin updates

 *  Resolved [wwwwwwoi](https://wordpress.org/support/users/dldufrnfu/)
 * (@dldufrnfu)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/hide-plugin-updates/)
 * Hello,
    I’m new to this plug-in and was trying to display only updates on post/
   page. I found this filter on repo, but this didn’t seem to work for me:
 *     ```
       // Do not log some post types, for example pages and attachments in this case
       add_filter('simple_history/log/do_log', function ($do_log = null, $level = null, $message = null, $context = null, $logger = null) {
           $post_types_to_not_log = array(
               'plugin'
           );
           if (( isset($logger->slug) && ($logger->slug === 'SimplePostLogger' || $logger->slug === 'SimpleMediaLogger') ) && ( isset($context['post_type']) && in_array($context['post_type'], $post_types_to_not_log) )) {
               $do_log = false;
           }
           return $do_log;
       }, 10, 5);
       ```
   
 * I pasted this code in functions.php, but I was still able to see the updates 
   info on plugins. Does this only work with post type?
    Is there way to disable
   plugins, wordpress core, etc from being updated in the view?
    -  This topic was modified 6 years, 9 months ago by [wwwwwwoi](https://wordpress.org/support/users/dldufrnfu/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [wwwwwwoi](https://wordpress.org/support/users/dldufrnfu/)
 * (@dldufrnfu)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/hide-plugin-updates/#post-11851204)
 * Sorry I should’ve done more deep reading of examples.php
    Found the filter to
   load only specific loggers.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Hide plugin updates’ is closed to new replies.

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [wwwwwwoi](https://wordpress.org/support/users/dldufrnfu/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/hide-plugin-updates/#post-11851204)
 * Status: resolved