wsf_option_set

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

  1. $value Mixed
    The value of the option being set.
  2. $option_key String
    The 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