Browse: Home / Functions /

learndash_get_posts_by_price_type

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

Get Courses/Groups by Price Type.


Description #


Parameters #

$price_type

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

Default value: ''

$post_type

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

Default value: ''

$bypass_transient

(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 #

Changelog
Version Description
3.4.1 Introduced.