groups_activity_new_update_content

  • apply_filters( 'groups_activity_new_update_content', $activity_content )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-functions.php :: Trac Source Line: 519
      		return false;
      
      	// Record this in activity streams
      	$activity_action  = sprintf( __( '%1$s posted an update in the group %2$s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' );
      	$activity_content = $content;
      
      	$activity_id = groups_record_activity( array(
      		'user_id' => $user_id,
      		'action'  => apply_filters( 'groups_activity_new_update_action',  $activity_action  ),
      		'content' => apply_filters( 'groups_activity_new_update_content', $activity_content ),
      		'type'    => 'activity_update',
      		'item_id' => $group_id
      	) );
      
      	groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
      	do_action( 'bp_groups_posted_update', $content, $user_id, $group_id, $activity_id );
      
      	return $activity_id;
      }
      

Comments are closed.