learndash-lesson-row-topic-count-before

do_action( 'learndash-lesson-row-topic-count-before',  int $lesson_id,  int $course_id,  int $user_id )

Fires after the lesson topic counts.


Description #


Parameters #

$lesson_id

(int) Lesson ID.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/lesson/partials/row.php


Examples #

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

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

Changelog #

Changelog
Version Description
3.0.0 Introduced.