apply_filters( 'learndash_mark_complete', string $return, WP_Post $post )
Filters HTML output to mark a course completion.
Description #
Parameters #
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_mark_complete filter.
*/
add_filter(
'learndash_mark_complete',
function( $return, $post ) {
// May add any custom logic using $return, $post.
// Always return $return.
return $return;
},
10,
2
);
Changelog #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |