bp_activity_get_moderated_activity_types

Types of activity stream items to moderate.

Description

(array) bp_activity_get_moderated_activity_types(); 

Returns (array)

$types List of the activity types to moderate.


Usage

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

Defined (1)

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

/bp-activity/bp-activity-filters.php  
  1. function bp_activity_get_moderated_activity_types() { 
  2. $types = array( 
  3. 'activity_comment',  
  4. 'activity_update' 
  5. ); 
  6.  
  7. /** 
  8. * Filters the default activity types that BuddyPress should moderate. 
  9. * @since 1.6.0 
  10. * @param array $types Default activity types to moderate. 
  11. */