From 1d9e64368f0543a63fb7f2415d43493695431045 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 13 Apr 2020 10:16:49 +0000 Subject: [PATCH] Advice on when to load the plugin updates checker Over the past couple of years when maintaining Easy Updates Manager - https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/ - we've had a lots of reports from people with third party plugins and themes whose upgrades aren't detected or performed. On investigation, this is invariably because the component loads PUC only during an `admin_*` hook, which means that those updates are effectively invisible except for a logged-in user viewing a page in the WP dashboard. So, tools like EUM, ManageWP, JetPack Manage, UpdraftCentral, WP-CLI, etc., don't see them - they're invisible. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d2f8280..df0301f 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ From the users' perspective, it works just like with plugins and themes hosted o Getting Started --------------- +In each of the above examples, part of the instructions are to load the plugin updater class. It is recommended to do this during the `plugins_loaded` WordPress action. If you do it only during an `admin_*` action, then available updates will not be visible to a wide variety of WordPress maanagement components; they would then only be visible to a logged-in user on the dashboard using the dashboard pages. + ### Self-hosted Plugins and Themes 1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest) and copy the `plugin-update-checker` directory to your plugin or theme.