WordPress 5.2.0 Hooks, Functions, Classes and Methods
Page 12

activate_plugin()

Attempts activation of plugin in a “sandbox” and redirects on success.

download_url()

Downloads a URL to a local temporary file using the WordPress HTTP API.