PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
<?php
add_action("ws_plugin__s2member_during_file_download_access", "my_function");
function my_function($vars = array()){
$user_id = $vars["user_id"];
$file = $_GET["s2member_file_download"];
$user = new WP_User($user_id);
//print_r($user);
}
?>
$first_name = $vars["user->first_name"];
$last_name = $vars["user->last_name"];
[user] => WP_User Object ( [data] => stdClass Object ( [ID] => 1 [user_login] => paul [user_pass] => secrett. [user_nicename] => paul [user_email] => secret [user_url] => [user_registered] => 2011-06-02 19:05:22 [user_activation_key] => [user_status] => 0 [display_name] => paul [first_name] => [last_name] => [nickname
Users browsing this forum: Google [Bot] and 2 guests