Description
The wsf_submit_block_ips_message_type 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. Available types are:
successinformationwarningdanger
It can also be set to a blank string for no type.
Usage
add_filter( 'wsf_submit_block_ips_message_type', 'my_hook_function', 10, 2 );
Parameters
$message_typeStringThe message type. This can be blank for no type or: success, information, warning, or danger.$formForm ObjectThe form object.
Example
// Callback function for the wsf_submit_block_ips_message_type filter hook
function my_hook_function( $message_type, $form ) {
// Your code here ...
// Return value
return information;
}
// Add a callback function for the wsf_submit_block_ips_message_type filter hook
add_filter( 'wsf_submit_block_ips_message_type', 'my_hook_function', 10, 2 );
Source File
This hook can be found in:<plugin root>/includes/core/class-ws-form-form.php