apply_filters( 'learndash_mark_complete_form_fields', string $form_fields, WP_Post $post )
Filters form fields to mark a course complete.
Description #
Parameters #
- $form_fields
-
(string) HTML output for course mark complete form fields.
- $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_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. |