• Our hosting provider locked down updates and cannot update without promote from dev->test->prod . Because of that, it is possible to stop logging on all the WordPress and plugin updates notice? We manage them ourselves and don’t need simple history to log entries to remind us.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dyuen888

    (@dyuen888)

    I think I have an answer but need to test it to be sure:

    will add to functions.php

    add_filter(
    'simple_history/log/do_log',
    function ($doLog, $level, $message, $context, $logger) {
    // Bail if not correct logger.
    if ($logger->get_slug() !== 'AvailableUpdatesLogger') {
    return $doLog;
    }
    
    // Do not log this message since it's from 'AvailableUpdatesLogger'.
    return false;
    },
    10,
    5
    );
    Plugin Author Pär Thernström

    (@eskapism)

    That code seems to be correct, let me know if you get it to work or if you need further assistance!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘exclude Plugin Update notice’ is closed to new replies.