Gravity_Forms_Helpers::get_uncanny_codes_forms( $forms )


Parameters Parameters

$forms

(Required)


Top ↑

Return Return

(mixed)


Source Source

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

	public static function get_uncanny_codes_forms( $forms ) {
		if ( empty( $forms ) ) {
			return $forms;
		}

		foreach ( $forms as $k => $form ) {

			$uo_codes_fields = self::is_uncanny_code_field_exist( $form['fields'] );

			if ( ! $uo_codes_fields ) {
				unset( $forms[ $k ] );
			}
		}

		return $forms;
	}