bp_get_activity_comment_delete_link()

Gets the ‘delete’ URL for the activity comment currently being displayed.

Description

Return

(string) $link The nonced URL for deleting the current activity comment.

Source

File: bp-activity/bp-activity-template.php

2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
function bp_get_activity_comment_delete_link() {
    $link = wp_nonce_url( trailingslashit( bp_get_activity_directory_permalink() . 'delete/' . bp_get_activity_comment_id() ) . '?cid=' . bp_get_activity_comment_id(), 'bp_activity_delete_link' );
 
    /**
     * Filters the link used for deleting the activity comment currently being displayed.
     *
     * @since BuddyPress 1.5.0
     *
     * @param string $link Link to use for deleting the currently displayed activity comment.
     */
    return apply_filters( 'bp_activity_comment_delete_link', $link );
}

Changelog

Changelog
Version Description
BuddyPress 1.5.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.