wordpress activate plugin code example
Example: wordpress activate plugin
// Attempts activation of plugin in a “sandbox” and redirects on success.
activate_plugin( string $plugin, string $redirect = '',
bool $network_wide = false, bool $silent = false )