learndash-focus-template-start

do_action( 'learndash-focus-template-start',  int $course_id )

Fires at the start of the focus template.


Description #


Parameters #

$course_id

(int) Course ID.


Source #

File: themes/ld30/templates/focus/header.php


Examples #

 <?php
/**
 * Example usage for learndash-focus-template-start action.
 */
add_action(
	'learndash-focus-template-start',
	function( $course_id ) {
		// May add any custom logic using $course_id

		echo '<div>Custom content or markup</div>';
	}
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.