Browse: Home / Hooks /

learndash_get_course_price

apply_filters( 'learndash_get_course_price',  array $pricing )

Filters price details for a course.


Description #


Parameters #

$pricing

(array) Course price details.


Source #

File: includes/payments/ld-payments-functions.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash_get_course_price filter.
 */
add_filter(
	'learndash_get_course_price',
	function( $course_price ) {
		// May add any custom logic using $course_price.

		// Always return $course_price.
		return $course_price;
	}
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.