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_Postobject being displayed.
Source #
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
);