ninja_forms_get_all_fields

The Ninja Forms ninja forms get all fields function.

Description

ninja_forms_get_all_fields(); 

Usage

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

Defined (1)

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

/deprecated/includes/database.php  
  1. function ninja_forms_get_all_fields() { 
  2. global $wpdb; 
  3. $field_results = $wpdb->get_results("SELECT * FROM ".NINJA_FORMS_FIELDS_TABLE_NAME, ARRAY_A); 
  4. if(is_array($field_results) AND !empty($field_results)) { 
  5. $x = 0; 
  6. $count = count($field_results) - 1; 
  7. while($x <= $count) { 
  8. $field_results[$x]['data'] = unserialize($field_results[$x]['data']); 
  9. $x++; 
  10. return $field_results;