Warning: This method has been deprecated.
LLMS_AJAX::get_course_tracks()
Return array of course tracks (id => name)
Description Description
Return Return
(array)
Source Source
File: includes/class.llms.ajax.php
public function get_course_tracks() { llms_deprecated_function( 'LLMS_AJAX::get_course_tracks()', '3.13.0' ); $trackslist = get_terms( 'course_track',array( 'hide_empty' => '0', ) ); $tracks = array(); foreach ( (array) $trackslist as $num => $track ) { $tracks[] = array( 'ID' => $track->term_id, 'post_title' => $track->name, ); } echo json_encode( $tracks ); die(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.13.0 | This method has been deprecated. |
?? | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: