do_action( 'xprofile_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

(int) Inform about the item id the cover photo was deleted for.

Source

File: bp-members/classes/class-bp-rest-attachments-member-cover-endpoint.php

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.