Developers
...
Filters
Basic
wpgmza_global_settings_save_redux
3min
Add additional settings storage handling, or modify existing settings before storing them to the database.
Source
ο»Ώ
Arguments
- $data : The data to be saved to the settings object (array)
Requirements
- Must return $data with your changes/additions in place
Files
- includes/class.settings-page.php
Why Redux? The preferred method of storage is by adding directly to the DOM with the relevant field names in place. Our core should handle this as expected.
ο»Ώ
With that said, some developers require more specific storage handling, this hook replaces a legacy hook which allowed for custom storage logic to be adhered to.
ο»Ώ
Updated 03 Aug 2023
Did this page help you?