Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 7th March 2021 17:35 Europe/London time based on the source file dated 4th March 2021 12:05 Europe/London time.