bp_xprofile_reset_cover_image_position( int $user_id )
Reset cover image position while uploading/deleting profile cover photo.
Description
Parameters
- $user_id
-
(Required) User ID.
Source
File: bp-xprofile/bp-xprofile-functions.php
function bp_xprofile_reset_cover_image_position( $user_id ) {
if ( ! empty( (int) $user_id ) ) {
bp_delete_user_meta( (int) $user_id, 'bp_cover_position' );
}
}
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.