Browse: Home / Functions /

learndash_get_legacy_course_id

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 #

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. 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.