wsf_submit_block_ips_message

Description

The wsf_submit_block_ips_message WordPress filter hook is used in conjunction with the wsf_submit_block_ips filter hook to customize the message shown if a blocked IP address detected.

Usage

add_filter( 'wsf_submit_block_ips_message', 'my_hook_function', 10, 2 );

Parameters

  1. $message String
    The message shown if a blocked IP is detected.
  2. $form Form Object
    The form object.

Example

// Callback function for the wsf_submit_block_ips_message filter hook
function my_hook_function( $message, $form ) {
	
	// Your code here ...

	// Return value
	return $message;
}

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

Source File

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