Browse: Home / Hooks /

learndash_mark_incomplete_form_atts

apply_filters( 'learndash_mark_incomplete_form_atts',  array $atts,  WP_Post $post )

Filters attributes to mark a course incomplete.


Description #


Parameters #

$atts

(array) An array of attributes to mark a course incomplete.

$post

(WP_Post) WP_Post object being displayed.


Source #

File: includes/course/ld-course-progress.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

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

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