LLMS_REST_Students_Controller::prepare_args_for_total_count_query( array $args, WP_REST_Request $request )

Prepare query args for total count query.


Parameters Parameters

$args

(array) (Required) Array of query args.

$request

(WP_REST_Request) (Required) Full details about the request.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/server/class-llms-rest-students-controller.php

	protected function prepare_args_for_total_count_query( $args, $request ) {
		// run the query again on page one to get a proper total count.
		$args['page'] = 1;
		return $args;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.