Automattic\WooCommerce\Internal\Admin\ProductForm
FormFactory::get_sections
Returns list of registered sections.
Method of the class: FormFactory{}
No Hooks.
Returns
Array. list of registered sections.
Usage
$result = FormFactory::get_sections( $sort_by, foooo, ) );
- $sort_by(array)
- key and order to sort by.
Default: array( foo - foooo
- .
Default: > fooooo - )(required)
- .
FormFactory::get_sections() FormFactory::get sections code WC 10.3.6
public static function get_sections( $sort_by = array(
'key' => 'order',
'order' => 'asc',
) ) {
return self::get_items( 'section', 'Section', $sort_by );
}