learndash-course-content-list-before

do_action( 'learndash-course-content-list-before',  int $course_id,  int $user_id )

Fires before the course content listing


Description #


Parameters #

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/course.php


Examples #

 <?php
/**
 * Example usage for learndash-course-content-list-before action.
 */
add_action(
	'learndash-course-content-list-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.0.0 Introduced.