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 25th November 2020 07:35 Europe/London time based on the source file dated 9th October 2020 10:20 Europe/London time.