Description

This function returns student meta data.

Usage

$student_meta = tp_students::get_student_meta($wp_id, $meta_key);

Parameters

wp_id

(int) The ID of the student. It’s the WordPress user ID

meta_key (optional)

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

Return

(array)

An array containing all the data fields.

Example

$student_meta = tp_students::get_student_meta(12);

Changelog

  • Since: 5.0.0