bp_displayed_user_use_cover_image_header()

Should we use the cover photo header

Description

Return

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

Source

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

function bp_displayed_user_use_cover_image_header() {
	return (bool) bp_is_active( 'xprofile', 'cover_image' ) && ! bp_disable_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.