/** * Prepend the name fields to the default billing_info_fields added by the framework. * * @return array */ public function billing_info_fields() { $fields = array(array('name' => 'lastName', 'label' => esc_html__('Last Name', 'gravityformspaypalpaymentspro'), 'required' => false), array('name' => 'firstName', 'label' => esc_html__('First Name', 'gravityformspaypalpaymentspro'), 'required' => false)); return array_merge($fields, parent::billing_info_fields()); }
/** * Append the phone field to the default billing_info_fields added by the framework. * * @return array */ public function billing_info_fields() { $fields = parent::billing_info_fields(); $fields[] = array('name' => 'phone', 'label' => esc_html__('Phone', 'gravityformsauthorizenet'), 'required' => false); return $fields; }