Container_Query::get_valid_orderby_fields()

Returns the fields that are valid to be used in orderby clauses.

Description

See also

Return

(array) Array of valid orderby fields.

Source

File: src/db-objects/containers/container-query.php

	public function get_valid_orderby_fields() {
		$orderby_fields = parent::get_valid_orderby_fields();

		return array_merge( $orderby_fields, array( 'sort' ) );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.