deactivate_plugin

Description

Deactivate plugin based on $_GET[‘id’] which is the plugin’s filename (i.e. moodle.plugin.php).

Usage

<?php deactivate_plugin($id); ?>

Parameters

$id (string) (required) The id of the plugin to be deactivated.

Return Values

(string) Deactivated plugin if it exists.

Change Log

Since 6.0.04

Source File

deactivate_plugin() is located in app/functions/hook-function.php.