bp_groups_reset_cover_image_position( int $group_id )

Reset cover image position while uploading/deleting groups cover photo.

Description

Parameters

$group_id

(Required) Group ID.

Source

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

function bp_groups_reset_cover_image_position( $group_id ) {
	if ( ! empty( (int) $group_id ) ) {
		groups_delete_groupmeta( $group_id, 'bp_cover_position' );
	}
}

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.