bp_activity_register_activity_actions

Register the activity stream actions for updates.

Description

bp_activity_register_activity_actions(); 

Usage

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

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. function bp_activity_register_activity_actions() { 
  2. $bp =buddypress); 
  3.  
  4. $bp->activity->id,  
  5. 'activity_update',  
  6. __( 'Posted a status update', buddypress ),  
  7. __( 'Updates', buddypress ),  
  8. array( 'activity', 'group', 'member', 'member_groups' ) 
  9. ); 
  10.  
  11. $bp->activity->id,  
  12. 'activity_comment',  
  13. __( 'Replied to a status update', buddypress ),  
  14. __( 'Activity Comments', buddypress ) 
  15. ); 
  16.  
  17. /** 
  18. * Fires at the end of the activity actions registration. 
  19. * Allows plugin authors to add their own activity actions alongside the core actions. 
  20. * @since 1.6.0 
  21. */ 
  22.  
  23. // Backpat. Don't use this.