Automattic\WooCommerce\Internal\Admin\ProductForm
FormFactory::get_item_list
Returns list of registered items.
Метод класса: FormFactory{}
Хуков нет.
Возвращает
Массив. List of registered items.
Использование
$result = FormFactory::get_item_list( $type );
- $type(строка) (обязательный)
- Form component type.
Код FormFactory::get_item_list() FormFactory::get item list WC 10.4.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();
}