bp_core_get_cover_image_dimensions( $wh,  $settings,  $component )

Filter to change cover image dimensions to original for group and profile.

Description

Parameters

$wh

(Required) array

$settings

(Required) array

$component

(Required) string

Return

(array)

Source

File: bp-core/bp-core-filters.php

function bp_core_get_cover_image_dimensions( $wh, $settings, $component ) {
	if ( did_action( 'wp_ajax_bp_cover_image_upload' ) && ( 'xprofile' === $component || 'groups' === $component ) ) {
		return array(
			'width'  => 99999,
			'height' => 99999,
		);
	}

	return $wh;
}

Changelog

Changelog
Version Description
BuddyBoss 1.5.1 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.