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