Activity_Meta::get_metadata( int $object_id, string $meta_key = '', bool $single = true )
Wrapper method for get_metadata that can be overridden in sub classes.
Description Description
Parameters Parameters
- $object_id
-
(Required) ID of the object the metadata is for.
- $meta_key
-
(Optional) Metadata key. If not specified, retrieve all metadata for the specified object.
Default value: ''
- $single
-
(Optional) default is false. If true, return only the first value of the specified meta_key. This parameter has no effect if meta_key is not specified.
Default value: true
Return Return
(mixed) Single metadata value, or array of values.
Source Source
File: cli/src/activity-meta.php