Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

purge_plugin_config()

Description

Purge configuration of a plugin.

Replaces config value in plugins table with NULL. Note, this function
will operate on an activated plugin as well so its configuration can
be 'defaulted' by the plugin's configuration page.

@category PluginAuthors

Parameters

ColumnTypeDefaultDescription
$name string Name of plugin to purge configuration.

Location

include/plugin_functions.php lines 114 to 120

Definition

 
function purge_plugin_config($name)
    {
    
sql_query("UPDATE plugins SET config=NULL, config_json=NULL where name='$name'");

    
// Clear query cache
    
clear_query_cache("plugins");
    }

This article was last updated 13th July 2020 15:05 Europe/London time based on the source file dated 2nd July 2020 09:08 Europe/London time.