Warning: This function has been deprecated. Determine the type of ID is being passed in. Should be the ID of anything that belongs to a course (Lesson, Topic, Quiz, etc) instead.
learndash_get_legacy_course_id( WP_Post|int|null $id = null )
Gets the legacy course ID for a resource.
Description Description
Parameters Parameters
- $id
-
(Optional) ID of the resource.
Default value: null
Return Return
(string) ID of the course.
Source Source
File: includes/deprecated/3.4.0/functions.php
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Determine the type of ID is being passed in. Should be the ID of anything that belongs to a course (Lesson, Topic, Quiz, etc). |
2.1.0 | Introduced. |