learndash_mark_complete_form_fields

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 #

File: includes/course/ld-course-progress.php


Examples #

 <?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 #

Changelog
Version Description
3.0 Introduced.