Automattic\WooCommerce\Internal\Admin\ProductForm
FormFactory::get_fields
Returns list of registered fields.
Метод класса: FormFactory{}
Хуков нет.
Возвращает
Массив. list of registered fields.
Использование
$result = FormFactory::get_fields( $sort_by, foooo, ) );
- $sort_by(массив)
- key and order to sort by.
По умолчанию: array( foo - foooo
- .
По умолчанию: > fooooo - )(обязательный)
- .
Код FormFactory::get_fields() FormFactory::get fields WC 10.4.0
public static function get_fields( $sort_by = array(
'key' => 'order',
'order' => 'asc',
) ) {
return self::get_items( 'field', 'Field', $sort_by );
}