Gravity_Forms_Helpers::is_uncanny_code_field_exist( $fields )


Parameters Parameters

$forms

(Required)


Top ↑

Return Return

(mixed)


Source Source

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

	public static function is_uncanny_code_field_exist( $fields ) {
		$uo_codes_fields = false;
		foreach ( $fields as $field ) {
			if ( GF_SUBFORM_CODES::UO_CODES_FIELD_TYPE !== $field->type ) {
				continue;
			}
			$uo_codes_fields = true;
			break;
		}

		return $uo_codes_fields;
	}