<?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 ) {
    // Set the user_id in GET so the User Activity module can access it
    $_GET['user_id'] = $user->ID;
    
    // Call the User Activity module's action
    do_action( 'wpuf_ud_profile_sections' );
}