Group_Meta::get_metadata( int $object_id, string $meta_key = '', bool $single = true )

Wrapper method for get_metadata that can be overridden in sub classes.

Parameters Parameters


(int) (Required) ID of the object the metadata is for.


(string) (Optional) Metadata key. If not specified, retrieve all metadata for the specified object.

Default value: ''


(bool) (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.

Source Source

File: cli/src/group-meta.php

	protected function get_metadata( $object_id, $meta_key = '', $single = true ) {
		return groups_get_groupmeta( $object_id, $meta_key, $single );

Top ↑

User Contributed Notes User Contributed Notes

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