<?php
/**
 * Activity Tab Template Part
 * 
 * @var array $template_data Complete data including user info
 * @var WP_User $user User object (from template_data)
 */

// Get the user from template data
$user = isset( $template_data['user'] ) ? $template_data['user'] : null;

if ( class_exists( 'WPUF_User_Activity' ) && $user ) {
    do_action( 'wpuf_ud_profile_sections', $user->ID );
}