learndash-course-infobar-price-cell-before

do_action( 'learndash-course-infobar-price-cell-before',  string|false $post_type,  int $course_id,  int $user_id )

Fires before the course infobar price cell.


Description #


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/course.php


Examples #

 <?php
/**
 * Example usage for learndash-course-infobar-price-cell-before action.
 */
add_action(
	'learndash-course-infobar-price-cell-before',
	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
);