dozent_get_total_attachments( int $course_ID )

Get total attachments related by the course


Description

Count total attachments attach with a course by course ID

Example usage:

dozent_get_total_attachments();
dozent_get_total_attachments( $course_ID );

See also


Parameters

$course_ID

(int) (Required)


Return

(mixed|void)


Source

File: includes/core-functions.php

	function dozent_get_total_attachments( $course_ID = 0 ) {

		$course_ID = dozent_get_post_id( $course_ID );

		$total_attachments = (int) get_post_meta( $course_ID, '_total_attachments', true );

		/**
		 * Filter dozent_get_total_attachments() output
		 *
		 * @since DozentLMS 1.0.0
		 *
		 * @see dozent_get_total_attachments();
		 *
		 * @param  int  $total_attachments  Total Attachments Count
		 * @param  int  $course_ID  Course ID
		 */

		return apply_filters( 'dozent_get_total_attachments', $total_attachments, $course_ID );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.