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


Top ↑

Return Return

(mixed) Single metadata value, or array of values.


Top ↑

Source Source

File: cli/src/activity-meta.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.