learndash-progress-bar-before

do_action( 'learndash-progress-bar-before',  int $group_id,  int $user_id )

Fires before the progress bar.


Description #


Parameters #

$group_id

(int) Group ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/modules/progress-group.php


Examples #

 <?php
/**
 * Example usage for learndash-progress-bar-before action.
 */
add_action(
	'learndash-progress-bar-before',
	function( $course_id, $user_id ) {
		// May add any custom logic using $course_id, $user_id

		echo '<div>Custom content or markup</div>';
	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
3.2.0 Introduced.