Inventory_Presser_REST::allow_orderby_rand( array $query_params )

Allow vehicles to be returned in a random order.


Parameters

$query_params

(array) (Required)

$post_type

(WP_Post_Type) (Required)


Return

(array)


Source

File: includes/class-rest.php

	public function allow_orderby_rand( $query_params ) {
		$query_params['orderby']['enum'][] = 'rand';
		return $query_params;
	}