maithemewp / mai-engine

Other
17 stars 3 forks source link

CLI `wp plugin update --all` doesn't update Mai plugins #607

Closed JiveDig closed 2 years ago

JiveDig commented 2 years ago

Does this require some extra code to allow our plugins to be seen by this via CLI?

JiveDig commented 2 years ago

Interesting:

Note: In each of the below examples, part of the instructions are to create an instance of the update checker class. It's recommended to do this either during the pluginsloaded action or outside of any hooks. If you do it only during an admin* action, then updates will not be visible to a wide variety of WordPress maanagement tools; they will only be visible to logged-in users on dashboard pages.

Via -- https://github.com/YahnisElsts/plugin-update-checker/blob/master/README.md

I've always done it on admin_init, but looks like this is the reason it doesn't work with WP-CLI.