learndash_get_course_price

learndash_get_course_price( int|object|null $course = null )

Gets the course price.


Description #

Return an array of price type, amount and cycle.


Parameters #

$course

(int|object|null) (Optional) Course WP_Post object or post ID. Default to global $post.

Default value: null


Return #

(array) Course price details.


Source #

File: themes/ld30/includes/helpers.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.