dozent_dashboard_content( bool $echo = true )

Render the dashboard pages content dynamically based on URL slug


Parameters

$echo

(bool) (Optional)

Default value: true


Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_dashboard_content( $echo = true ) {

		if ( is_user_logged_in() ) {
			$output = apply_filters( 'dozent_dashboard_content',
				dozent_load_template( 'dashboard/content', [], false ) );
		} else {
			$output = dozent_login_form();
		}

		if ( $echo ) {
			echo $output;
		} else {
			return $output;
		}
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.