Description
Filters the plugin settings before they are loaded into the plugin’s main object. This can be used to change plugin settings on the fly for different criteria.
Parameters
$settings
(array) (required) An array of the plugin settings as loaded from wp_options.
Contents of the $settings array will follow this format:
[gist id=eaaa82e79014c91ed5729a4449f3d579 file=wpmem_settings_examples.php]
Usage
[gist id=eaaa82e79014c91ed5729a4449f3d579 file=wpmem_settings.php]
Notes
Once in the object, the settings managed by this filter can be changed directly in the object on the fly, so this filter is not used much anymore. However, it remains supported in the plugin.
Changelog
- Introduced in version 2.9.0
- Moved to the WP_Members class in 3.0.0
Source
wpmem_settings
is located in /includes/class-wp-members.php