ninja_forms_field_recaptcha_pre_process

The Ninja Forms ninja forms field recaptcha pre process function.

Description

ninja_forms_field_recaptcha_pre_process( $field_id, $user_value ); 

Parameters (2)

0. $field_id
The field id.
1. $user_value
The user value.

Usage

  1. if ( !function_exists( 'ninja_forms_field_recaptcha_pre_process' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/fields/recaptcha.php'; 
  3.  
  4. // The field id. 
  5. $field_id = null; 
  6.  
  7. // The user value. 
  8. $user_value = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = ninja_forms_field_recaptcha_pre_process($field_id, $user_value); 
  12.  

Defined (1)

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

/deprecated/includes/fields/recaptcha.php  
  1. function ninja_forms_field_recaptcha_pre_process( $field_id, $user_value ) { 
  2. global $ninja_forms_processing; 
  3.  
  4. // Set our captcha field id for later processing. 
  5. $ninja_forms_processing->update_form_setting( 'recaptcha_field', $field_id ); 
  6.  
  7. // Add our captcha processing.