dozent_container_classes( string $class = '' )

Print container classes to div


Parameters

$class

(string) (Optional) Additional classes, string | Array

Default value: ''


Source

File: includes/template-functions.php

	function dozent_container_classes( $class = '' ) {

		$class = (array) $class;

		$classes = [
			'dozent-container',
		];

		if ( is_dozent_course_archive() ){
			$classes[] = 'dozent-course-archive';
			$classes[] = 'dozent-course-archive-wrap';
		}

		$classes = apply_filters( 'dozent_container_classes', array_merge($classes, $class) );

		echo 'class="' . join( ' ', $classes ) . '"';
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.