dozent_get_dashboard_permalink_by_id( $id )


Parameters

$id

(Required) ID of dashboard permalink


Return

(bool|mixed)


Source

File: includes/core-functions.php

	function dozent_get_dashboard_permalink_by_id( $id ) {

		$id = trim( $id );
		$permalinks           = dozent_dashboard_permalinks();
		$target_permalink = false;

		foreach ( $permalinks as $group_name => $group_permalinks ) {

			foreach ( $group_permalinks as $permalink ) {
				$target_id = dozent_array_get( 'id', $permalink );
				if ( $target_id === $id ) {
					$permalink[ 'group_name' ] = $group_name;
					$target_permalink          = $permalink;
					break;
				}
			}

		}

		return $target_permalink;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.