learndash_show_lesson_list_steps

apply_filters( 'learndash_show_lesson_list_steps',  boolean $show_steps,  int $lesson_id,  int $course_id,  int $user_id )

Filters whether to show lesson steps in lesson listing.


Description #


Parameters #

$show_steps

(boolean) Whether to show lesson steps.

$lesson_id

(int) Lesson ID.

$course_id

(int) Course ID

$user_id

(int) User ID


Source #

File: themes/ld30/templates/lesson/listing.php


Examples #

 <?php
/**
 * Example usage for learndash_show_lesson_list_steps filter.
 */
add_filter(
	'learndash_show_lesson_list_steps',
	function( $show = true, $lesson_id = 0, $course_id = 0, $user_id = 0 ) {
		// Add any custom logic to compare the $lesson_id, $course_id, or $user_id.

		// Always return $show;
		return $show;
	},
	30,
	4
);