ninja_forms_register_field_honeypot

The Ninja Forms ninja forms register field honeypot function.

Description

ninja_forms_register_field_honeypot(); 

Usage

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

Defined (1)

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

/deprecated/includes/fields/honeypot.php  
  1. function ninja_forms_register_field_honeypot() { 
  2. $args = array( 
  3. 'name' => __( 'Honey Pot', 'ninja-forms' ),  
  4. 'sidebar' => '',  
  5. 'edit_function' => '',  
  6. 'display_function' => 'ninja_forms_field_honeypot_display',  
  7. 'save_function' => '',  
  8. 'group' => 'standard_fields',  
  9. 'default_label' => __( 'If you are a human and are seeing this field, please leave it blank.', 'ninja-forms' ),  
  10. 'edit_label' => false,  
  11. 'edit_desc' => false,  
  12. 'edit_label_pos' => false,  
  13. 'default_label_pos' => 'above',  
  14. 'default_value' => '',  
  15. 'edit_req' => false,  
  16. 'edit_custom_class' => false,  
  17. 'edit_help' => false,  
  18. 'edit_meta' => false,  
  19. 'edit_conditional' => false,  
  20. 'display_label' => true,  
  21. 'process_field' => false,  
  22. 'edit_options' => array( 
  23. array( 
  24. 'type' => 'hidden',  
  25. 'name' => 'honeypot_save',  
  26. ),  
  27. ),  
  28. ); 
  29.  
  30. ninja_forms_register_field('_honeypot', $args);