groups_register_activity_actions

  • do_action( 'groups_register_activity_actions' )

    Source Reference:

    • Component: BuddyPress:: bp-groups
      File: /bp-groups/bp-groups-activity.php :: Trac Source Line: 26
      	if ( !bp_is_active( 'activity' ) )
      		return false;
      
      	bp_activity_set_action( $bp->groups->id, 'created_group',   __( 'Created a group',       'buddypress' ) );
      	bp_activity_set_action( $bp->groups->id, 'joined_group',    __( 'Joined a group',        'buddypress' ) );
      	bp_activity_set_action( $bp->groups->id, 'new_forum_topic', __( 'New group forum topic', 'buddypress' ) );
      	bp_activity_set_action( $bp->groups->id, 'new_forum_post',  __( 'New group forum post',  'buddypress' ) );
      
      	do_action( 'groups_register_activity_actions' );
      }
      add_action( 'bp_register_activity_actions', 'groups_register_activity_actions' );
      
      function groups_record_activity( $args = '' ) {
      	global $bp;
      
      	if ( !bp_is_active( 'activity' ) )
      		return false;
      
      	// If the group is not public, hide the activity sitewide.
      

Comments are closed.