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
$value
MixedThe value of the option being set.$option_key
StringThe option key being set.
Example
// Add a callback function for the wsf_option_set filter hook add_filter( wsf_option_set, 'my_hook_function', 10, 2 ); // Callback function for the wsf_option_set filter hook function my_hook_function( $value, $option_key ) { // Your code here ... // Return value return $value; }
Source File
This hook can be found in:<plugin root>/includes/class-ws-form-common.php