Browse: Home / Functions /

learndash_get_user_activity_meta

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

Gets the user activity meta.


Description #


Parameters #

$activity_id

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

$activity_meta_key

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

Default value: ''

$return_activity_meta_value_only

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

Default value: true

$return_activity_meta_value_unserialize

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


Return #

(object) Activity meta object.


Source #

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


Changelog #

Changelog
Version Description
3.5.0 Added $return_activity_meta_value_unserialize param.
2.3.0 Introduced.