Description
The wsf_option_set filter allows you to modify the value of WS Form option values on set.
Usage
add_filter( 'wsf_option_set', 'my_hook_function', 10, 2 );
Parameters
$valueMixedThe value of the option being set.$option_keyStringThe option key being set.
Example
// Callback function for the wsf_option_set filter hook
function my_hook_function( $value, $option_key ) {
// Your code here ...
// Return value
return $value;
}
// Add a callback function for the wsf_option_set filter hook
add_filter( 'wsf_option_set', 'my_hook_function', 10, 2 );
Source File
This hook can be found in:<plugin root>/includes/class-ws-form-common.php