Webcare self-updates
Webcare: client info and change-request plugin for APM-managed WordPress sites
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/apmcpd/webcare/archive/refs/heads/master.zipShips its own WordPress updater (built-in updater), so new versions show up under Dashboard → Updates.
One place for your Webcare service details, website health and change requests.
Description
Webcare is installed on every website we host and manage. It gives the client (Editors and Administrators) one place to:
- see what their Webcare service includes and how to contact us,
- see their website health (coming soon), and
- send us a request for a change, which arrives by email in our shared mailbox.
The plugin has no settings stored in the database. It keeps a one-minute "please wait" marker to stop accidental double-sending, plus, after a failed submission, the typed form values for up to 5 minutes so nothing is lost.
Installation
- Upload the
webcarefolder to/wp-content/plugins/(or install the zip from a GitHub release) and activate it. - Open
wp-config.phpand add this line above the "That's all, stop editing!" comment, using our real support mailbox address:
define( 'WEBCARE_SUPPORT_EMAIL', 'webcare@example.com' );
- Visit the Webcare menu in the WordPress admin to check it looks right.
Until that line is added, the request form stays switched off and clients see "Online requests aren't set up yet". Administrators also see instructions on how to fix it. The plugin never falls back to the site's admin email.
How to edit the Your service text
- Open
includes/config.phpand find the functionwebcare_service_info()(it is marked "EDIT THIS"). - Change the wording (what's included, what's quoted separately, response times, phone number, ownership promises). Anything left empty is simply not shown.
- Save, then release an update (see below) so every client site gets the new text.
Releasing an update
IMPORTANT: every release goes to ALL client sites automatically, usually within about 12 hours. Test first.
- Make your change.
- Change the version number in THREE places: the
Version:line at the top ofwebcare.php,WEBCARE_VERSIONjust below it in the same file, andStable tag:at the top of this file. All three must match. - Add a new entry at the top of the Changelog in
webcare.phpand in the Changelog section of this file. - Commit and push to the
masterbranch on GitHub (https://github.com/APMCPD/webcare). - Test the new version on one site first.
- On GitHub, create a new Release from the
masterbranch. The tag must bevfollowed by the exact version number, for examplev1.0.1. - Client sites check for updates about every 12 hours and install Webcare updates automatically.
WARNING: if the tag does not exactly match the version number inside the plugin (for example the tag says v1.0.2 but the plugin still says 1.0.1), sites will keep offering the same update over and over again.
Changelog
1.0.0
- Initial release. Webcare page and dashboard widget, "Request a change" form with confirmation email, "Your service" information, and automatic updates from GitHub.