Skip to:
Content
Pages
Categories
Search
Top
Bottom
Codex HomeDeveloper ResourcesFunction Examples → groups_get_groupmeta()

groups_get_groupmeta()

Function to get custom group meta.

If you don’t pass a meta_key it returns ALL meta data associated with that group_id.

Returns String or Array of Meta Values.

Odd Behavior: If you pass no meta key to get all values and it has none, it returns a blank array. If you passed a key it returns a blank string.

groups_get_groupmeta( $group_id, $meta_key = '');

See also groups_update_groupmeta()

Source File

groups_get_groupmeta() is located in bp-groups/bp-groups-functions.php

Skip to toolbar