Browse: Home / Classes / LD_REST_Quizzes_Controller_V2 /

LD_REST_Quizzes_Controller_V2::rest_collection_params_filter

LD_REST_Quizzes_Controller_V2::rest_collection_params_filter( array $query_params,  WP_Post_Type $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

(WP_Post_Type) (Required) Post type string.


Source #

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


Changelog #

Changelog
Version Description
3.3.0 Introduced.