learndash_profile_quiz_columns

apply_filters( 'learndash_profile_quiz_columns',  array $quiz_columns,  array $quiz_attempt,  array $quiz_list_columns )

Filters LearnDash profile quiz column list.


Description #


Parameters #

$quiz_columns

(array) An array of quiz columns list.

$quiz_attempt

(array) This is the quiz attempt array read from the user meta.

$quiz_list_columns

(array) An array of quiz list columns data.


Source #

File: themes/ld30/templates/shortcodes/profile/quiz-row.php


Examples #

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

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