3min

wpgmza_global_settings_save_redux

Add additional settings storage handling, or modify existing settings before storing them to the database.

Source

PHP
|

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.

ο»Ώ

ο»Ώ