Browse: Home / Hooks /

learndash_mark_complete_form_atts

apply_filters( 'learndash_mark_complete_form_atts',  array $attributes,  WP_Post $post )

Filters attributes for mark a course complete form.


Description #


Parameters #

$attributes

(array) An array of form, button, and timer attributes to override id and class.

$post

(WP_Post) WP_Post object being displayed.


Source #

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


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash_mark_complete_form_atts filter.
 */
add_filter(
	'learndash_mark_complete_form_atts',
	function( $attributes, $post ) {
		// May add any custom logic using $attributes, $post.

		// Always return $attributes.
		return $attributes;
	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.