dozent_get_current_url( $args = array() )

Get current page URL of DozentLMS


Parameters

$arg

(array) (Required) URL Arguments


Return

(mixed|void)


Source

File: includes/core-functions.php

	function dozent_get_current_url( array $args = [] ) {
		$args = (array) $args;

		$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );

		$current_url = add_query_arg( $args, $current_url );


		/**
		 * Filter dozent current page URL
		 *
		 * @since DozentLMS 1.0.0
		 *
		 * @param  string  $current_slug  Current Page URL
		 * @param  array  $arg  URL Arguments
		 */

		return apply_filters( 'dozent_get_current_url', $current_url );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.