Automattic\WooCommerce\Internal\Admin\ProductForm

FormFactory::get_sectionspublic staticWC 1.0

Returns list of registered sections.

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

Хуков нет.

Возвращает

Массив. list of registered sections.

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

$result = FormFactory::get_sections( $sort_by, foooo, ) );
$sort_by(массив)
key and order to sort by.
По умолчанию: array( foo
foooo
.
По умолчанию: > fooooo
)(обязательный)
.

Код FormFactory::get_sections() WC 10.3.4

public static function get_sections( $sort_by = array(
	'key'   => 'order',
	'order' => 'asc',
) ) {
	return self::get_items( 'section', 'Section', $sort_by );
}