Collections functions
General functions
Render 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 100 to 106

Definition

 
function purge_plugin_config($name)
    {
    
ps_query("UPDATE plugins SET config = NULL, config_json = NULL where name = ?", array("s"$name));

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

This article was last updated 26th June 2022 02:35 Europe/London time based on the source file dated 17th June 2022 14:45 Europe/London time.