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; }
Expand full source code Collapse full source code View on Trac