WP Inventory Manager Default Configuration
Allows altering the default values of the configuration, or adding new configuration values.
apply_filters('wpim_default_config', $defaults);
Useful when writing an add-on that needs to store certain configuration values.
add_filter('wpim_default_config', 'my_custom_function'); function my_custom_function($config) { $config['my_new_config'] = 'A Default Value'; $config['another_new_config'] = 'Some other Value'; return $config; }