dozent_current_page()

Get current page as number


Description

Example usage:

$paged = dozent_current_page();

Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_current_page() {
		$current_page = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1;


		if ( dozent_input_text( 'current_page' ) ) {
			$current_page = max( 1, dozent_input_text( 'current_page' ) );
		}

		return apply_filters( 'dozent_current_page', $current_page );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.