bp_get_avatar_delete_link()
Return an avatar delete link.
Description
Return
(string)
Source
File: bp-xprofile/bp-xprofile-template.php
function bp_get_avatar_delete_link() { /** * Filters the link used for deleting an avatar. * * @since BuddyPress 1.1.0 * * @param string $value Nonced URL used for deleting an avatar. */ return apply_filters( 'bp_get_avatar_delete_link', wp_nonce_url( bp_displayed_user_domain() . bp_get_profile_slug() . '/change-avatar/delete-avatar/', 'bp_delete_avatar_link' ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.1.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.