Gravity_Forms_Helpers::get_code_fields( $entry,  $form )

Get all code fields via gform_after_submission action hook.


Return Return

(array) The code fields.


Source Source

File: src/integrations/gravity-forms/helpers/gravity-forms-helpers.php

	public static function get_code_fields( $entry, $form ) {

		// Get all the codes field.
		$uo_codes_fields = array_filter(
			$form['fields'],
			function ( $field ) use ( $entry ) {
				return GF_SUBFORM_CODES::UO_CODES_FIELD_TYPE === $field->type && ! empty( $entry[ $field->id ] );
			}
		);

		return $uo_codes_fields;

	}