Browse: Home / Functions /


learndash_get_posts_by_price_type( string $post_type = '',  string $price_type = '',  boolean $bypass_transient = false )

Get Courses/Groups by Price Type.

Description #

Parameters #


(string) (Optional) Post Type slug: sfwd-courses or group.

Default value: ''


(string) (Optional) Price Type: open, free, closed, paynow, etc.

Default value: ''


(boolean) (Optional) Whether to bypass transient cache.

Default value: false

Return #

(@array) Array of Course IDs.

Source #

File: includes/course/ld-course-functions.php

Changelog #

Version Description
3.4.1 Introduced.