Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 99 to 105

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 19th March 2024 09:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.