learndash_points_awarded_output

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 #

File: includes/ld-assignment-uploads.php


Examples #

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