ld_after_course_status_template_container

apply_filters( 'ld_after_course_status_template_container' )

This filter is documeted in themes/ld30/templates/course.php


Description #


Source #

File: themes/legacy/templates/course.php


Examples #

 <?php
/**
 * Example usage for ld_after_course_status_template_container filter.
 */
add_filter( 'ld_after_course_status_template_container', 'add_content_after_course_status', 10, 4 );
function add_content_after_course_status( $output = '', $course_status = 'not_started', $course_id = 0, $user_id = 0 ) {

	if ( $course_status == 'not_started' ) {
		$output .= '<p>Today is a good day to start learning.</p>';
	} elseif ( $course_status == 'in_progress' ) {
		$output .= '<p>Continue the Course and continue learning.</p>';
	} elseif ( $course_status == 'complete' ) {
		$output .= '<p>Thank You for completing this Course.</p>';
	}

	return $output;
}