Description

This function returns course meta data.

Usage

$course_meta = tp_courses::get_course_meta($course_id, $meta_key);

Parameters

course_id

(int) The ID of the course.

meta_key (optional)

(string) If you don’t set a meta_key, all availabe meta data of the course will be returned.

Return

(array)

An array containing all the data fields.

Example

$course_meta = tp_courses::get_course_meta(12);

Changelog

  • Since: 5.0.0