bp_get_activity_comment_delete_link()
Gets the ‘delete’ URL for the activity comment currently being displayed.
Description Description
Return Return
(string) $link The nonced URL for deleting the current activity comment.
Source Source
File: bp-activity/bp-activity-template.php
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 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 |
---|---|
1.5.0 | Introduced. |