bp_blogs_register_activity_actions

Register activity actions for the blogs component.

Description

(bool|null) bp_blogs_register_activity_actions(); 

Returns (bool|null)

Returns false if activity component is not active.


Usage

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

Defined (1)

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

/bp-blogs/bp-blogs-activity.php  
  1. function bp_blogs_register_activity_actions() { 
  2. if ( is_multisite() ) { 
  3. buddypress)->blogs->id,  
  4. 'new_blog',  
  5. __( 'New site created', buddypress ),  
  6. __( 'New Sites', buddypress ),  
  7. array( 'activity', 'member' ),  
  8. ); 
  9.  
  10. /** 
  11. * Fires after the registry of the default blog component activity actions. 
  12. * @since 1.1.0 
  13. */