LLMS_REST_Controller::get_get_item_params()
Retrieves the query params for retrieving a single resource.
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-controller.php
if ( $prev_page > $pagination['total_pages'] ) { $prev_page = $pagination['total_pages']; } $prev_link = add_query_arg( 'page', $prev_page, $base ); $response->link_header( 'prev', $prev_link ); } // Next page link. if ( $pagination['total_pages'] > $pagination['current_page'] ) { $next_link = add_query_arg( 'page', $pagination['current_page'] + 1, $base ); $response->link_header( 'next', $next_link );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |