23

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?

1
  • 3
    I have never understood the lack of logged history in WordPress. The core needs something basic for developers to build on with a whole new category of plugins.
    – Ryan Bayne
    Jul 18, 2016 at 13:13

4 Answers 4

4

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
  • Thanks. Definitely. Maybe another table in db, but it can come handy in my opinion. At least for admins.
    – Derfder
    Dec 2, 2012 at 12:36
  • 13
    This doesn't answer the question. The OP asked for a log of plugin updates on his Wordpress, not the plugin's changelog.
    – Bluu
    May 28, 2015 at 5:08
7

I don't know if this is the fix for you, but I was looking at a similar problem and I found this plugin. It seems to be updated regularly, so it might be a good contemporary solution:

https://wordpress.org/plugins/wp-security-audit-log/

Keep an audit log of all changes and under the hood WordPress activity to ensure productivity and thwart possible WordPress hacker attacks

1

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);
    }
}
0

There are different options.

I used several in the past and my go-to plugin now is WP Admin Audit.

https://wordpress.org/plugins/wp-admin-audit/

You can track all things happening around your site, including admin actions related to plugins: WP Admin Audit - Sensors (for WordPress activity log)

It records who installed/updated which plugin at which time.

Not the answer you're looking for? Browse other questions tagged or ask your own question.