learndash-{$context}-infobar-inside-after

do_action( "learndash-{$context}-infobar-inside-after",  string|false $post_type,  int $course_id,  int $user_id )

Fires inside the infobar (after) for any context.


Description #

The dynamic portion of the hook name, $context, refers to the context for which the hook is fired, such as course, lesson, topic, quiz, etc.


Parameters #

$post_type

(string|false) Post type slug.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/modules/infobar.php


Examples #

 <?php
/**
 * Example usage for learndash-{$context}-infobar-inside-after action.
 */
add_action(
	'learndash-lesson-infobar-inside-after',
	function( $post_type, $course_id, $user_id ) {
		// May add any custom logic using $post_type, $course_id, $user_id

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