learndash_course_navigation_widget_args

apply_filters( 'learndash_course_navigation_widget_args',  array $widget_instance,  int $course_id )

Filters Course navigation widget arguments


Description #


Parameters #

$widget_instance

(array) The widget instance.

$course_id

(int) Course ID.


Source #

File: themes/ld30/templates/widgets/course-navigation.php


Examples #

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

		// Always return $widget_instance.
		return $widget_instance;
	},
	10,
	2
);