Check for updates in multiple Wordpress instances hosted in the same server, and notify each owner by e-mail.
- Composer
- MySQL user having read access to all Wordpress schemas, and a dedicated schema for storing metadata about updates.
- An SMTP server for sending the notifications.
- A server with cron, if you want to automate the checks ;-)
- Clone this repo.
- Run
composer install
. - Create a new MySQL schema and run the
create_tables.sql
. - Fill the table
sites
with all the Wordpress sites that you want to check. - Edit the config section of
wp_updates.php
assigning values to the constants with your server's configuration (MySQL and SMTP credentials). - Set up a daily cronjob like
0 23 * * * php /your-path-to-cloned-repo/wp_updates.php
. In this example, the job will run each day on 23:00.
Before waiting the cron to run for the first time, you can manually run the scripts in the command line: php /your-path-to-cloned-repo/wp_updates.php