Browse: Home / Hooks /

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 #

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