bp_dd_update_group_cover_images_url( array $attachment_data, array $param )
Filter to update group cover images
Description
Parameters
- $attachment_data
-
(Required)
- $param
-
(Required)
Return
(array)
Source
File: bp-core/bp-core-filters.php
groups_delete_groupmeta( $group_id, 'cover-image' ); } } add_action( 'groups_cover_image_deleted', 'bp_dd_delete_group_cover_images_url', 10, 1 ); add_action( 'groups_cover_image_uploaded', 'bp_dd_delete_group_cover_images_url', 10, 1 ); /** * Delete the user cover photo attachment * * @since BuddyBoss 1.0.0 */ function bp_dd_delete_xprofile_cover_images_url( $user_id ) { if ( ! empty( $user_id ) ) { bp_delete_user_meta( $user_id, 'cover-image' ); } } add_action( 'xprofile_cover_image_deleted', 'bp_dd_delete_xprofile_cover_images_url', 10, 1 ); add_action( 'xprofile_cover_image_uploaded', 'bp_dd_delete_xprofile_cover_images_url', 10, 1 ); /** * Create dummy path for Group and User *
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.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.