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 #
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 #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |