dozent_get_total_assignments( int $course_ID )

Get total assignments related by the course


Description

Count total assignments attach with a course by course ID

Example usage:

dozent_get_total_assignments();
dozent_get_total_assignments( $course_ID );

See also


Parameters

$course_ID

(int) (Required)


Return

(mixed|void)


Source

File: includes/core-functions.php

	function dozent_get_total_assignments( $course_ID = 0 ) {
		$course_ID = dozent_get_post_id( $course_ID );

		$total_assignments = (int) get_post_meta( $course_ID, '_total_assignments', true );

		/**
		 * Filter dozent_get_total_assignments() output
		 *
		 * @since DozentLMS 1.0.0
		 *
		 * @see dozent_get_total_assignments();
		 *
		 * @param  int  $total_assignments  Total Assignments Count
		 * @param  int  $course_ID  Course ID
		 */

		return apply_filters( 'dozent_get_total_assignments', $total_assignments, $course_ID );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.