Browse: Home / Hooks /

learndash_rest_users_course_progress_query

apply_filters( 'learndash_rest_users_course_progress_query' )

This filter is documeted in includes/rest-api/v1/class-ld-rest-users-course-progress-controller.php


Description #


Source #

File: includes/rest-api/v2/class-ld-rest-users-course-progress-controller.php


Examples #

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

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