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 )

Leave a Comment