Warning: This method has been deprecated. $paged automatically set via add_rewrite_rule() in $this->add_endpoints() method instead.
LLMS_Query::set_dashboard_pagination()
Handles setting the “paged” variable on Student Dashboard endpoints which utilize page/{n} style pagination
Description Description
Return Return
(void)
Source Source
File: includes/class.llms.query.php
public function set_dashboard_pagination() { llms_deprecated_function( 'LLMS_Query::set_dashboard_pagination()', '3.28.2' ); $tab = LLMS_Student_Dashboard::get_current_tab( 'slug' ); $var = get_query_var( $tab ); if ( $var ) { global $wp_rewrite; $paged = explode( '/', $var ); // this should work on localized sites if ( $wp_rewrite->pagination_base === $paged[0] ) { set_query_var( 'paged', $paged[1] ); } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.28.2 | $paged automatically set via add_rewrite_rule() in $this->add_endpoints() method. |
3.14.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: