bp_cleanup_friendship_activities

Remove all hidden friendship activities.

Description

bp_cleanup_friendship_activities(); 

Usage

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

Defined (1)

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

/bp-core/bp-core-update.php  
  1. function bp_cleanup_friendship_activities() { 
  2. 'component' =>buddypress)->friends->id,  
  3. 'type' => 'friendship_created',  
  4. 'hide_sitewide' => true,  
  5. ) );