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 #
Parameters #
- $id
-
(WP_Post|int|null) (Optional) ID of the resource.
Default value: null
Return #
(string) ID of the course.
Source #
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. 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. |