Divi_Helpers::get_form_by_id( $form_id )

Select form by ID


Parameters Parameters

$form_id

(Required)


Top ↑

Return Return

(array|mixed)


Source Source

File: src/integrations/divi/helpers/divi-helpers.php

	public static function get_form_by_id( $form_id ) {
		$forms = self::extract_forms();
		if ( empty( $forms ) ) {
			return array();
		}

		foreach ( $forms as $_form_id => $d ) {
			if ( (string) $_form_id === (string) $form_id ) {
				return $d['fields'];
			}
		}

		return array();
	}