try $user->my_phone
I wish it was that simple...
For testing, if I for example use echo $user->user_login;
I get the correct user name sent to the screen
If I use echo $user->home_phone; AND
If I use print_r($user->home_phone);
I get no data on the screen which is at least an improvement in that the statement does not cause a crash.
My guess is that I need to more specifically refer to mysite_wp_s2member_custom_fields and then the specific field name but?
It is a bunch of stuff which is why I placed it at the bottom but as you can see from the results of print_r($user), home_phone contains 999-999-9999 so there is data, it is just a mater of the right syntax:
========================================================
WP_User Object ( [data] => stdClass Object ( [ID] => 7 [user_login] => delete2 [user_pass] => $P$BGVsKUyw39djl1M7m/ja28d/lo93efy [user_nicename] => delete2 [user_email] =>
me@mydomain.com [user_url] => [user_registered] => 2011
-03-10 13:50:40 [user_activation_key] => [user_status] => 0 [display_name] => delete2 [first_name] => my First Name is delete [last_name] => My Last name is also delete [nickname] => delete2 [description] => [rich_editing] => true
[comment_shortcuts] => false [admin_color] => fresh [use_ssl] => 0 [aim] => [yim] => [jabber] => [mysite_wp_capabilities] => Array ( [s2member_level2] => 1 ) [mysite_wp_user_level] => 0 [mysite_wp_s2member_custom_fields] => Array (
[street_address_1] => delete Stereet Adressx [street_address_2] => [city] => Atlanta City [state] => GA [zip] => 12222 [home_phone] => 999-999-9999 [work_phone] => [cell_phone] => [wants_weekly_news] => [emergency_phone] =>
[wants_user_listing] => [directory_name] => [secondary_email] => [mail_address_1] => [mail_address_2] => [mail_city] => [mail_state] => [mail_zip] => ) [default_password_nag] => 1 [mysite_wp_s2member_notes] => Demoted by
s2Member: Fri Mar 11, 2011 12:04 am UTC Demoted by s2Member: Fri Mar 11, 2011 1:44 am UTC [mysite_wp_s2member_paid_registration_times] => Array ( [level] => 1299768460 [level2] => 1299768460 )
[mysite_wp_s2member_auto_eot_time] => 1300838400 [show_admin_bar_front] => true [show_admin_bar_admin] => false [user_level] => 0 [user_firstname] => my First Name is delete [user_lastname] => My Last name is also delete
[user_description] => ) [ID] => 7 [id] => 7 [caps] => Array ( [s2member_level2] => 1 ) [cap_key] => mysite_wp_capabilities [roles] => Array ( [0] => s2member_level2 ) [allcaps] => Array ( [read] => 1 [level_0] => 1 [access_s2member_level0] =>
1 [access_s2member_level1] => 1 [access_s2member_level2] => 1 [s2member_level2] => 1 ) [first_name] => my First Name is delete [last_name] => My Last name is also delete [filter] => [user_login] => delete2 [user_pass] => $P
$de56ws94otljs237^wl(t/hzytfd61 [user_nicename] => delete2 [user_email] =>
user@mysite.com [user_url] => [user_registered] => 2011-03-10 13:50:40 [user_activation_key] => [user_status] => 0 [display_name] => delete2 [nickname] =>
delete2 [description] => [rich_editing] => true [comment_shortcuts] => false [admin_color] => fresh [use_ssl] => 0 [aim] => [yim] => [jabber] => [mysite_wp_capabilities] => Array ( [s2member_level2] => 1 ) [mysite_wp_user_level] => 0
[mysite_wp_s2member_custom_fields] => Array ( [street_address_1] => delete Stereet Adressx [street_address_2] => [city] => New York City [state] => NY [zip] => 12222 [home_phone] => 999-999-9999 [work_phone] => [cell_phone] =>
[wants_weekly_news] => [emergency_phone] => [wants_user_listing] => [directory_name] => [secondary_email] => [mail_address_1] => [mail_address_2] => [mail_city] => [mail_state] => [mail_zip] => ) [default_password_nag] => 1
[mysite_wp_s2member_notes] => Demoted by s2Member: Fri Mar 11, 2011 12:04 am UTC Demoted by s2Member: Fri Mar 11, 2011 1:44 am UTC [mysite_wp_s2member_paid_registration_times] => Array ( [level] => 1299768460 [level2] =>
1299768460 ) [mysite_wp_s2member_auto_eot_time] => 1300838400 [show_admin_bar_front] => true [show_admin_bar_admin] => false [user_level] => 0 [user_firstname] => my First Name is delete [user_lastname] => My Last name is also
delete [user_description] => )
========================================================
DP