learndash_quiz_row_atts

apply_filters( 'learndash_quiz_row_atts',  string $attribute )

Filters quiz row attributes. Used while displaying a single quiz row.


Description #


Parameters #

$attribute

(string) Quiz row attribute. The value is data-ld-tooltip if a user does not have access to quiz otherwise empty string.


Source #

File: themes/ld30/templates/quiz/partials/row.php


Examples #

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

		// Always return $attribute.
		return $attribute;
	}
);