Warning: This method has been deprecated.

LLMS_AJAX::get_course_tracks()

Return array of course tracks (id => name)


Description Description


Return Return

(array)


Top ↑

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();
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 This method has been deprecated.
?? Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: