How to execute plugin and theme updates from a web hook / endpoint?

Question

I’m trying out adding WordPress REST API endpoints. I would now like to add an endpoint that retrieves a list of available plugin, theme and core updates.

I found the following functions: get_plugin_updates(), get_theme_updates() and get_core_updates(). With these functions I could retrieve info about which plugins to update.

How do I start the update proces for a plugin/theme/core? I’m especially looking for updating an individual item. Similar to WP Manage and GoDaddy Hub.

It would be great if someone could tell me how to implement this and how to start the update process!

0
ralphjsmit 2 months 2021-03-23T12:06:58-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse