ASTRA_Ext_LearnDash_Markup::body_class( array $classes )

Body Class


Description


Parameters

$classes

(array) (Required) Default argument array.


Return

(array;)


Source

File: addons/learndash/classes/class-astra-ext-learndash-markup.php

		public function body_class( $classes ) {

			$distraction_free_learning = astra_get_option( 'learndash-distraction-free-learning' );

			if ( ( is_singular( 'sfwd-courses' ) || is_singular( 'sfwd-lessons' ) || is_singular( 'sfwd-topic' ) || is_singular( 'sfwd-quiz' ) ) && $distraction_free_learning ) {
				$classes[] = 'learndash-distraction-free';
			}

			return $classes;
		}

User Contributed Notes

You must log in before being able to contribute a note or feedback.