Browse: Home / Functions /


learndash_course_status_legacy( int $id,  int|null $user_id = null,  boolean $return_slug = false )

LEGACY: Outputs the current status of the course.

Description #

Replaced by learndash_course_status in 3.4.0.

Parameters #


(int) (Required) Course ID to get status.


(int|null) (Optional) User ID.

Default value: null


(boolean) (Optional) If false will return translatable string otherwise the status slug.

Default value: false

Return #

(string) The current status of the course.

Source #

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

Changelog #

Version Description
2.5.8 Added $return_slug parameter.
2.1.0 Introduced.