wsf_populatePRO

Description

The wsf_populate filter hook can be used to change the form population data prior to the form being rendered.

Usage

add_filter( 'wsf_populate', 'my_hook_function', 10, 1 );

Parameters

  1. $populate_array Array
    An array containing the data used to populate the form.

Example

// Callback function for the wsf_populate filter hook
function my_hook_function( $populate_array ) {
	
	// Your code here ...

	// Return value
	return $populate_array;
}

// Add a callback function for the wsf_populate filter hook
add_filter( 'wsf_populate', 'my_hook_function', 10, 1 );

Source File

This hook can be found in: <plugin root>/public/class-ws-form-public.php