bp_nouveau_group_has_meta( $meta_key = '' )

Does the group has metas or a specific meta value.

Description

Return

(bool) True if the group has meta. False otherwise.

Source

File: bp-templates/bp-nouveau/includes/groups/template-tags.php

function bp_nouveau_group_has_meta( $meta_key = '' ) {
    $group_meta = bp_nouveau_get_group_meta();

    if ( ! $meta_key ) {
        return (bool) $group_meta;
    }

    return ! empty( $group_meta[ $meta_key ] );
}

Changelog

Changelog
Version Description
BuddyPress 3.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.