Automattic\WooCommerce\Internal\Admin\ProductForm

FormFactory::get_item_list()private staticWC 1.0

Returns list of registered items.

Метод класса: FormFactory{}

Хуков нет.

Возвращает

Массив. List of registered items.

Использование

$result = FormFactory::get_item_list( $type );
$type(строка) (обязательный)
Form component type.

Код FormFactory::get_item_list() WC 8.7.0

private static function get_item_list( $type ) {
	$mapping = array(
		'field'      => self::$form_fields,
		'subsection' => self::$form_subsections,
		'section'    => self::$form_sections,
		'tab'        => self::$form_tabs,
	);
	if ( array_key_exists( $type, $mapping ) ) {
		return $mapping[ $type ];
	}
	return array();
}