apply_filters( 'learndash_points_awarded_output', string $output, string $current )
Filters the output of the awarded points of an assignment.
Description #
Parameters #
- $output
-
(string) Output of the awarded points.
- $current
-
(string) Points awarded values or translatable string.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_points_awarded_output filter.
*/
add_filter(
'learndash_points_awarded_output',
function( $output, $current ) {
// May add any custom logic using $output, $current.
// Always return $output.
return $output;
},
10,
2
);