learndash_get_lesson_progress_defaults

apply_filters( 'learndash_get_lesson_progress_defaults',  array $lesson_progress_defaults )

Filters default values for lesson progress.


Description #


Parameters #

$lesson_progress_defaults

(array) Default values for lesson progress.


Source #

File: themes/ld30/includes/helpers.php


Examples #

 <?php
/**
 * Example usage for learndash_get_lesson_progress_defaults filter.
 */
add_filter(
	'learndash_get_lesson_progress_defaults',
	function( $lesson_progress_defaults ) {
		// May add any custom logic using $lesson_progress_defaults.

		// Always return $lesson_progress_defaults.
		return $lesson_progress_defaults;
	}
);