apply_filters( 'learndash_quiz_row_classes', array{wrapper: , array $quiz, string $context )
Filters quiz row CSS classes.
Description #
Parameters #
-
(array{wrapper:) string, preview: string, anchor: string} $classes 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.
Return #
(array{wrapper:) string, preview: string, anchor: string}
Source #
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 #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |