learndash_quiz_row_classes

apply_filters( 'learndash_quiz_row_classes',  array $classes,  array $quiz,  string $context )

Filters quiz row CSS classes.


Description #


Parameters #

$classes

(array) Array of CSS classes with keys wrapper, preview, and anchor.

$quiz

(array) The quiz array

$context

(string) The context where the quiz is being shown.


Source #

File: themes/ld30/includes/helpers.php


Examples #

 <?php
/**
 * Example usage for learndash_quiz_row_classes filter.
 */
add_filter(
	'learndash_quiz_row_classes',
	function( $classes, $quiz, $context ) {
		// May add any custom logic using $classes, $quiz, $context.

		// Always return $classes.
		return $classes;
	},
	10,
	3
);