apply_filters( 'learndash_show_mark_incomplete_form', boolean $show_form, int $course_id, WP_Post $post, array $atts )
Filters whether to show mark course incomplete form.
Description #
Parameters #
- $show_form
-
(boolean) Whether to show mark incomplete form.
- $course_id
-
(int) Course ID.
- $post
-
(WP_Post)
WP_Postobject being displayed. - $atts
-
(array) An array of attributes to mark a course incomplete.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_show_mark_incomplete_form filter.
*/
add_filter(
'learndash_show_mark_incomplete_form',
function( $show_form, $course_id, $post, $atts ) {
// May add any custom logic using $show_form, $course_id, $post, $atts.
// Always return $show_form.
return $show_form;
},
10,
4
);