request = $application->request; } /** * Get all the flatten form inputs * @return void */ public function index() { $formId = $this->request->get('formId'); $form = wpFluent()->table('fluentform_forms')->find($formId); $fields = (new FormParser($form))->getEntryInputs(array('admin_label', 'attributes', 'options')); wp_send_json($fields, 200); } }