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)


Top ↑

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] );
			}
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.28.2 $paged automatically set via add_rewrite_rule() in $this->add_endpoints() method.
3.14.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: