apply_filters( 'learndash_mark_complete', string $return, WP_Post $post )
Filters HTML output to mark a course completion.
Description #
Parameters #
- $return
-
(string) HTML output to mark course complete.
- $post
-
(WP_Post) WP_Post object 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_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. |