Browse: Home / Hooks /

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 #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?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
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.