How to execute plugin and theme updates from a web hook / endpoint?
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_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!