woof_front_builder_options_after_update
Filters the entire options array after a front builder option has been updated and before it is saved to the database.
Parameters
$options (array) — Associative array of all options for the current front builder instance, including the newly updated field
Source File
ext/front_builder/classes/options.php:67
Code Example
add_filter('woof_front_builder_options_after_update', function($options) {
// Ensure a certain option always has a minimum value
if (isset($options['max_posts']) && $options['max_posts'] < 1) {
$options['max_posts'] = 1;
}
return $options;
});
Usage Notes
- Runs during the AJAX save_options() method.
- Receives the complete options associative array after the single field update has been merged in.
- The result is JSON-encoded and stored in a custom database table.