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


Top ↑

Return Return

(@array) Array of Course IDs.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.