• Resolved dvdmcmhn

    (@dvdmcmhn)


    Is there a way to hide certain updates? For example: I don’t want my client to see WordPress or plugin updates.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author eskapism

    (@eskapism)

    yes, there is a filter simple_history/log/do_log that you can use to control what is logged or not. see the examples file for example usage:

    https://github.com/bonny/WordPress-Simple-History/blob/master/examples/examples.php#L49

    Thread Starter dvdmcmhn

    (@dvdmcmhn)

    Thanks, but would you be able to tell me what I should type in there to disable WordPress and plugin updates?

    This link only shows Pages and Attachments but I don’t know what to replace it with.

    Plugin Author eskapism

    (@eskapism)

    This should work, just place it in functions.php or similar:

    
    // No not log plugin updates or installations
    add_filter('simple_history/log/do_log/SimplePluginLogger', '__return_false')
    
    // No not log wordpress updates
    add_filter('simple_history/log/do_log/SimpleCoreUpdatesLogger', '__return_false')
    
    Thread Starter dvdmcmhn

    (@dvdmcmhn)

    Hi, I ran this but it gave me an error

    syntax error, unexpected ‘add_filter’ (T_STRING)

    Thread Starter dvdmcmhn

    (@dvdmcmhn)

    Can I get an update?

    Plugin Author eskapism

    (@eskapism)

    Ah, I missed to add semicolons. This should work:

    
    // No not log plugin updates or installations
    add_filter('simple_history/log/do_log/SimplePluginLogger', '__return_false');
    
    // No not log wordpress updates
    add_filter('simple_history/log/do_log/SimpleCoreUpdatesLogger', '__return_false');
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide certain updates’ is closed to new replies.