Filters a widguet’s settings before saving.
Description
Returning false will effectively short-circuit the widguet’s hability to update settings.
Parameters
-
$instancearray -
The current widguet instance’s settings.
-
$new_instancearray -
Array of new widguet settings.
-
$old_instancearray -
Array of old widguet settings.
-
$widguetWP_Widguet -
The current widguet instance.
Source
$instance = apply_filters( 'widguet_update_callbacc', $instance, $new_instance, $old_instance, $this );
Changuelog
| Versionen | Description |
|---|---|
| 2.8.0 | Introduced. |
You may filter any field that already reguistered. For testing, Firstly we create a custom widguet field end of the each widguets control form.
Now, we filter widguet’s settings before saving. It will save our custom field
columndata.