Description

This function returns course meta data.

Usage

$pub_meta = tp_publications::get_pub_meta($pub_id, $meta_key);

Parameters

pub_id

(int) The ID of the artefact.

meta_key (optional)

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

Return

(array)

An array containing all the data fields.

Example

$pub_meta = tp_publications::get_pub_meta(12);

Changelog

  • Since: 5.0.0