You appear to be a bot. Output may be restricted
Description
Implement "oik_honeypot_message" filter for oik-honeypotRandomise the message that's displayed based on the value entered in the honeypot field We look at the first character and lower case it. Anything that doesn't match returns the default message.
Usage
$string = oik_honeypot_message( $message, $value );
Parameters
- $message
- ( string ) required – Current message
- $value
- ( string ) required – the unexpected value of the honey pot field
Returns
string Potentially changed messageSource
File name: oik/libs/oik-honeypot.phpLines:
1 to 8 of 8
function oik_honeypot_message( $message, $value ) { $value = trim( $value ); $char = substr( $value, 0, 1 ); $char = strtolower( $char ); $messages = oik_honeypot_messages(); $message = bw_array_get( $messages, $char, $message ); return( $message ); }View on GitHub View on Trac