ninja_forms_get_all_fields
The Ninja Forms ninja forms get all fields function.
Description
ninja_forms_get_all_fields();
Usage
if ( !function_exists( 'ninja_forms_get_all_fields' ) ) { require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/database.php'; } // NOTICE! Understand what this does before running. $result = ninja_forms_get_all_fields();
Defined (1)
The function is defined in the following location(s).
- /deprecated/includes/database.php
- function ninja_forms_get_all_fields() {
- global $wpdb;
- $field_results = $wpdb->get_results("SELECT * FROM ".NINJA_FORMS_FIELDS_TABLE_NAME, ARRAY_A);
- if(is_array($field_results) AND !empty($field_results)) {
- $x = 0;
- $count = count($field_results) - 1;
- while($x <= $count) {
- $field_results[$x]['data'] = unserialize($field_results[$x]['data']);
- $x++;
- }
- }
- return $field_results;
- }