bp_get_activity_delete_link()
Return the activity delete link.
Description
Return
(string) $link Activity delete link. Contains $redirect_to arg if on single activity page.
Source
File: bp-activity/bp-activity-template.php
2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 | function bp_get_activity_delete_link() { $url = bp_get_activity_delete_url(); $class = 'delete-activity' ; // Determine if we're on a single activity page, and customize accordingly. if ( bp_is_activity_component() && is_numeric ( bp_current_action() ) ) { $class = 'delete-activity-single' ; } $link = '<a href="' . esc_url( $url ) . '" class="button item-button bp-secondary-action ' . $class . ' confirm" rel="nofollow">' . __( 'Delete' , 'buddyboss' ) . '</a>' ; /** * Filters the activity delete link. * * @since BuddyPress 1.1.0 * * @param string $link Activity delete HTML link. */ return apply_filters( 'bp_get_activity_delete_link' , $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.