do_action( "{$component}_cover_image_deleted", int $item_id )
Fires if the cover photo was successfully deleted.
Description
The dynamic portion of the hook will be xprofile in case of a user’s cover photo, groups in case of a group’s cover photo. For instance: Use add_action( ‘xprofile_cover_image_deleted’ ) to run your specific code once the user has deleted his cover photo.
Parameters
- $item_id
-
Inform about the item id the cover photo was deleted for.
Source
Changelog
Version | Description |
---|---|
BuddyPress 2.8.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.