apply_filters( 'learndash_get_course_price', array $pricing )
Filters price details for a course.
Description #
Parameters #
- $pricing
-
(array) Course price details.
Source #
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 #
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |