dozent_get_course_price( null $course = null )
Get course raw price
Description
Without filter, without any currency sign, just raw price of the course return false if there is no price.
Example usage:
$course_price = dozent_get_course_price( $course );
See also
Parameters
- $course
-
(null) (Optional) Course Object
Default value: null
Return
(mixed|bool|float)
Source
File: includes/course-functions.php
function dozent_get_course_price( $course = null ) { $course = dozent_get_course( $course ); /** * Filter the course price from the function dozent_get_course_price(); * * @since DozentLMS 1.0.0 * * @param bool|float $course_price * @param object \Dozent\Course Course Object */ return apply_filters( 'dozent_get_course_price', $course->price(), $course ); }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |