wpsc_update_plugin_list()
No Hooks.
Returns
null. Nothing (null).
Usage
wpsc_update_plugin_list( $update );
- $update(required)
- .
wpsc_update_plugin_list() wpsc update plugin list code WPSCache 3.1.0
function wpsc_update_plugin_list( $update ) {
$list = do_cacheaction( 'wpsc_filter_list' );
foreach( $update as $key => $enabled ) {
$plugin_toggle = "cache_{$key}";
if ( isset( $GLOBALS[ $plugin_toggle ] ) || isset( $list[ $key ] ) ) {
wp_cache_setting( $plugin_toggle, (int)$enabled );
}
}
}