bp_get_activity_delete_link

Return the activity delete link.

Description

(string) bp_get_activity_delete_link(); 

Returns (string)

$link Activity delete link. Contains $redirect_to arg if on single activity page.


Usage

  1. if ( !function_exists( 'bp_get_activity_delete_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_get_activity_delete_link(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-activity/bp-activity-template.php  
  1. function bp_get_activity_delete_link() { 
  2.  
  3. $class = 'delete-activity'; 
  4.  
  5. // Determine if we're on a single activity page, and customize accordingly. 
  6. if ( bp_is_activity_component() && is_numeric( bp_current_action() ) ) { 
  7. $class = 'delete-activity-single'; 
  8.  
  9. $link = '<a href="' . esc_url( $url ) . '" class="button item-button bp-secondary-action ' . $class . ' confirm" rel="nofollow">' . __( 'Delete', buddypress ) . '</a>'; 
  10.  
  11. /** 
  12. * Filters the activity delete link. 
  13. * @since 1.1.0 
  14. * @param string $link Activity delete HTML link. 
  15. */