Discord Webhook Notifications for MainWP is a WordPress plugin that sends notifications to a Discord server when plugin or theme updates are available on MainWP child sites.
Disclaimer: This is not an official MainWP plugin and is not affiliated with or endorsed by MainWP. It is an independent project developed by Sprucely Designed.
This plugin integrates with MainWP to monitor plugin and theme updates across all your connected child sites. When an update is detected, a notification is sent to a specified Discord webhook URL.
plugin_upgrades
column of the wp_mainwp_wp
table, excluding sites with is_ignorePluginUpdates
set to 1.theme_upgrades
column of the wp_mainwp_wp
table, excluding sites with is_ignoreThemeUpdates
set to 1.To improve performance and reduce database load, the plugin uses caching:
As tracked in Issue #14, when installing the plugin from the GitHub release .zip
file, the folder created in the wp-content/plugins
directory includes the -v#.#.#
version info. This can cause issues during updates.
On the first install, follow these steps to remove the version info from the plugin folder name:
Download the Latest Release:
.zip
file from GitHub.Extract and Rename:
.zip
file.mainwp-discord-notifications-v#.#.#
to mainwp-discord-notifications
.Install the Plugin:
mainwp-discord-notifications
folder to your wp-content/plugins
directory.wp-admin
Plugins page.This ensures that future updates via Git Updater or manually will not encounter issues with folder name mismatches.
Follow Issue 14 for updates. Future releases will include a build process to resolve this issue. Thank you for your understanding and patience.
Download the Plugin:
Upload the Plugin:
Plugins > Add New
.Upload Plugin
.Install Now
.Activate the Plugin:
Activate Plugin
.Configure Webhook URLs:
wp-config.php
file.define( 'MAINWP_PLUGIN_UPDATES_DISCORD_WEBHOOK_URL', 'your_plugin_updates_webhook_url' );
define( 'MAINWP_THEME_UPDATES_DISCORD_WEBHOOK_URL', 'your_theme_updates_webhook_url' );
To get automatic updates for this plugin, you can use the Git Updater plugin. For detailed instructions on how to install and configure Git Updater, please refer to the Git Updater Documentation.
Once installed and configured, the plugin will automatically check for updates following your mainwp_cronupdatescheck_action
cron schedule (with an hourly fallback) and send notifications to the specified Discord channel if updates are available.
The notifications will include:
Want to make MainWP better for everyone by contributing to Discord Notifications for MainWP? We'd love your help! Please read our contributing guide to learn about our development process and how to propose bug fixes and improvements.
This plugin is licensed under the GPL3. See the LICENSE file for more details.
This plugin is provided as-is without any warranties. No official support is provided. However, you can submit an issue on GitHub if you encounter any problems or have any questions. Please note that submitting an issue does not guarantee a resolution or a response.
Developed by Sprucely Designed