nf_check_honeypot

Make sure that our honeypot wasn't filled in.

Description

nf_check_honeypot(); 

Usage

  1. if ( !function_exists( 'nf_check_honeypot' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/display/processing/honeypot.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nf_check_honeypot(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/deprecated/includes/display/processing/honeypot.php  
  1. function nf_check_honeypot() { 
  2. global $ninja_forms_processing; 
  3.  
  4. $hp_name = $ninja_forms_processing->get_extra_value( '_hp_name' ); 
  5.  
  6. if ( $ninja_forms_processing->get_extra_value( $hp_name ) != '' ) { 
  7. $ninja_forms_processing->add_error( 'honeypot', '' );