Browse: Home / Classes / LD_REST_Questions_Controller_V2 /

LD_REST_Questions_Controller_V2::rest_collection_params_filter

LD_REST_Questions_Controller_V2::rest_collection_params_filter( array $query_params,  string $post_type )

For LearnDash post type we override the default order/orderby to ASC/title instead of the WP default DESC/date.


Description #


Parameters #

$query_params

(array) (Required) Quest params array.

$post_type

(string) (Required) Post type string.


Source #

File: includes/rest-api/v2/class-ld-rest-questions-controller.php


Changelog #

Changelog
Version Description
3.3.0 Introduced.