bp_group_use_cover_image_header()

Should we use the group’s cover photo header.

Description

Return

(bool) True if the displayed user has a cover photo, False otherwise

Source

File: bp-groups/bp-groups-template.php

function bp_group_use_cover_image_header() {
	return (bool) bp_is_active( 'groups', 'cover_image' ) && ! bp_disable_group_cover_image_uploads() && bp_attachments_is_wp_version_supported();
}

Changelog

Changelog
Version Description
BuddyPress 2.4.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.