apply_filters( 'learndash_mark_complete_form_fields', string $form_fields, WP_Post $post )
Filters form fields to mark a course complete.
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_form_fields filter.
*/
add_filter(
'learndash_mark_complete_form_fields',
function( $form_fields, $post ) {
// May add any custom logic using $form_fields, $post.
// Always return $form_fields.
return $form_fields;
},
10,
2
);
Changelog #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |