learndash-topic-row-title-before

do_action( 'learndash-topic-row-title-before',  int $topic_id,  int $course_id,  int $user_id )

Fires before the topic title.


Description #


Parameters #

$topic_id

(int) Topic ID.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/topic/partials/row.php


Examples #

 <?php
/**
 * Example usage for learndash-topic-row-title-before action.
 */
add_action(
	'learndash-topic-row-title-before',
	function( $topic_id, $course_id, $user_id ) {
		// May add any custom logic using $topic_id, $course_id, $user_id

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

Changelog #

Changelog
Version Description
3.0.0 Introduced.