website logo
Go back to WP Go Maps
⌘K
Initial Setup
WP Go Maps (v9)
πŸ‘First-time users
πŸ‘Map Features
πŸ‘Integrations
πŸ‘Importing and Exporting Data
Legacy (OIder) Layout (v9)
Frequently asked questions
Troubleshooting
Integrations
Developers
Hooks
Docs powered by
Archbee
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

PHP
|
apply_filters("wpgmza_global_settings_save_redux", $data);
ο»Ώ

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?
PREVIOUS
wpgmza_map_shortcode_get_default_attributes
NEXT
wpgmza_global_settings_tab_content
Docs powered by
Archbee
Docs powered by
Archbee