WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

AbstractProductGrid::get_schema_orderby() protected WC 1.0

Get the schema for the orderby attribute.

{} It's a method of the class: AbstractProductGrid{}

No Hooks.

Return

Array. Property definition of orderby attribute.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_schema_orderby();

Code of AbstractProductGrid::get_schema_orderby() WC 5.7.1

protected function get_schema_orderby() {
	return array(
		'type'    => 'string',
		'enum'    => array( 'date', 'popularity', 'price_asc', 'price_desc', 'rating', 'title', 'menu_order' ),
		'default' => 'date',
	);
}