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