learndash_get_posts_by_price_type( string $post_type = '', string $price_type = '', boolean $bypass_transient = false )
Get Courses/Groups by Price Type.
Description Description
Parameters Parameters
- $price_type
-
(Optional) Price Type: open, free, closed, paynow, etc.
Default value: ''
- $post_type
-
(Optional) Post Type slug: sfwd-courses or group.
Default value: ''
- $bypass_transient
-
(Optional) Whether to bypass transient cache.
Default value: false
Return Return
(@array) Array of Course IDs.
Source Source
File: includes/course/ld-course-functions.php
Changelog Changelog
Version | Description |
---|---|
3.4.1 | Introduced. |