learndash_get_assignment_progress

apply_filters( 'learndash_get_assignment_progress',  array $stats )

Filters progress of an assignment.


Description #


Parameters #

$stats

(array) An Associative array of assignment statistics with keys total, complete.


Source #

File: themes/ld30/includes/helpers.php


Examples #

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

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