Browse: Home / Hooks /

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 #

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

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

Changelog #

Changelog
Version Description
3.0.0 Introduced.