Browse: Home / Hooks /

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 #

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

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

Changelog #

Changelog
Version Description
3.0.0 Introduced.