Where in WP can I check history or log of updates of plugins etc?

I need to find out what happened at a certain time when some of my admins made some plugin updates etc. So I need to check in admin the log of changes, updates etc.

Where can I find that in WP admin?

Related posts

Leave a Reply

3 comments

  1. You can’t pull it in wp-admin you actually have to go look at the plugin in wordpress repository and see if they added there or to the plugin author’s site for a changelog.

    That would be a nice feature for the future.

  2. Very simple solution to log updates into a csv with timestamp and basic update info. Needs a writable log/upgrader_process_complete.csv file and you can use it with (new Log())->setHooks();.

    <?php declare( strict_types=1 );
    
    class Log
    {
        public function __construct()
        {
            // do nothing
        }
    
        public function setHooks()
        {
            add_action( 'upgrader_process_complete', [$this, 'action_upgrader_process_complete'], 10, 2 );
        }
    
        /**
         * This function runs when WordPress completes its upgrade process
         * It iterates through each plugin updated to see if ours is included
         * @link https://stackoverflow.com/a/61062331
         *
         * @param array $upgrader_object
         * @param array $options
         *
         * @return void
         */
        public function action_upgrader_process_complete( $upgrader_object, $options ): void
        {
            $file = __DIR__.'/log/upgrader_process_complete.csv';
            $data = date('Y-m-d H:i:s').', '.json_encode($options, JSON_UNESCAPED_UNICODE)."n";
            file_put_contents($file, $data, FILE_APPEND | LOCK_EX);
        }
    }