get_param('plugin')); if (AutoUpdate::isEnabled() && $plugin) { // The WP install response gives the plugin file without its ".php". AutoUpdate::enableAutoUpdateForPlugin(plugin_basename($plugin . '.php')); } return new \WP_REST_Response(['success' => true]); } }