Celebrate WordCamp Europe - 30% OFF! Use coupon WC30 - View Details

wsf_form_checksum_check

Description

The wsf_form_checksum_check filter hook determines whether the checksum is checked when a form is imported. By setting it to false you import form JSON files that were not created by WS Form when exporting a form.

Usage

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

Parameters

  1. $checksum_check Boolean
    Set to false to bypass checksum checks when importing a form.
    Default value: true

Example

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

	// Return value
	return $checksum_check;
}

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