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

LEGACY: Outputs the current status of the course.


Description Description

Replaced by learndash_course_status in 3.4.0.


Parameters Parameters

$id

(Required) Course ID to get status.

$user_id

(Optional) User ID.

Default value: null

$return_slug

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

Default value: false


Top ↑

Return Return

(string) The current status of the course.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.8 Added $return_slug parameter.
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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