You appear to be a bot. Output may be restricted
Description
Ensure the honeypot field is emptyIf this function detects the honeypot field after some of the page has been displayed then the message will be the last thing that appears on the page. The UI doesn't need to be that fancy; we do believe this is a spammer/ spam bot after all.
Usage
oik_honeypot_check_honeypot( $message );
Parameters
- $message
- ( string ) optional – Message to display when dying
Returns
voidSource
File name: oik/libs/oik-honeypot.phpLines:
1 to 11 of 11
function oik_honeypot_check_honeypot( $message=null ) { $field_name = oik_honeypot_field_name(); $value = bw_array_get( $_REQUEST, $field_name, null ); if ( $value ) { if ( !$message ) { add_filter( "oik_honeypot_message", "oik_honeypot_message", 9, 2 ); $message = apply_filters( "oik_honeypot_message", "Request denied.", $value ); } wp_die( $message ); } }View on GitHub View on Trac