Browse: Home / Functions /


learndash_get_user_activity_meta( int $activity_id,  string $activity_meta_key = '',  boolean $return_activity_meta_value_only = true,  boolean $return_activity_meta_value_unserialized = false )

Gets the user activity meta.

Description #

Parameters #


(int) (Optional) Activity ID. Default 0.


(string) (Optional) The activity meta key to get.

Default value: ''


(boolean) (Optional) Whether to return only activity meta value.

Default value: true


(boolean) (Optional) Whether to unserialize the single meta value.

Default value: false

Return #

(object) Activity meta object.

Source #

File: includes/course/ld-activity-functions.php

Changelog #

Version Description
3.5.0 Added $return_activity_meta_value_unserialized param.
2.3.0 Introduced.