Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:49:10-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=12970 2011-12-20T09:49:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=57681#p57681 <![CDATA[s2Member v111220 / Package Class: s2Member...]]>
s2Member v111220
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: December 20, 2011, 9:49 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:49 am


]]>
2011-12-07T01:01:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=55363#p55363 <![CDATA[s2Member v111206 / Package Class: s2Member...]]>
s2Member v111206
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: December 7, 2011, 1:01 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:01 am


]]>
2011-11-05T19:25:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=51737#p51737 <![CDATA[s2Member v111105 / Package Class: s2Member...]]>
s2Member v111105
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: November 5, 2011, 8:25 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:25 pm


]]>
2011-10-29T20:34:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=49832#p49832 <![CDATA[s2Member v111029 / Package Class: s2Member...]]>
s2Member v111029
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: October 29, 2011, 9:34 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:34 pm


]]>
2011-10-17T15:38:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=47626#p47626 <![CDATA[s2Member v111017 / Package Class: s2Member...]]>
s2Member v111017
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: October 17, 2011, 1:38 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:38 pm


]]>
2011-10-11T14:34:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=46026#p46026 <![CDATA[s2Member v111011 / Package Class: s2Member...]]>
s2Member v111011
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: October 11, 2011, 12:34 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:34 pm


]]>
2011-10-03T15:46:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=44157#p44157 <![CDATA[s2Member v111003 / Package Class: s2Member...]]>
s2Member v111003
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: October 3, 2011, 1:46 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:46 pm


]]>
2011-10-03T03:39:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=42864#p42864 <![CDATA[s2Member v111002 / Package Class: s2Member...]]>
s2Member v111002
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: October 3, 2011, 1:39 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:39 am


]]>
2011-09-27T05:25:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=41110#p41110 <![CDATA[s2Member v110927 / Package Class: s2Member...]]>
s2Member v110927
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: September 27, 2011, 3:25 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:25 am


]]>
2011-09-26T21:02:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=39866#p39866 <![CDATA[s2Member v110926 / Package Class: s2Member...]]>
s2Member v110926
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: September 26, 2011, 7:02 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:02 pm


]]>
2011-09-17T16:19:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=38010#p38010 <![CDATA[s2Member v110915 / Package Class: s2Member...]]>
s2Member v110915
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: September 17, 2011, 2:19 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 4:19 pm


]]>
2011-09-14T01:27:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=36591#p36591 <![CDATA[s2Member v110913 / Package Class: s2Member...]]>
s2Member v110913
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: September 13, 2011, 11:27 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:27 am


]]>
2011-09-13T12:02:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=35319#p35319 <![CDATA[s2Member v110912 / Package Class: s2Member...]]>
s2Member v110912
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: September 13, 2011, 10:02 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:02 pm


]]>
2011-08-15T14:10:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=31426#p31426 <![CDATA[s2Member v110815 / Package Class: s2Member...]]>
s2Member v110815
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: August 15, 2011, 3:10 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail Package s2Member\Utilities s2member\includes\classes\utils-users.inc.php at line #28 Class c_ws_plugin__s2member_utils_users c_ws_plugin__s2member_utils_users public class c_ws_plugin__s2member_utils_users User utilities. Since: 3.5 ( 10 Methods )Method Summary public static str|bool get_user_custom_with(str $subscr_or_txn_id, str $os0) Obtains Custom String for an existing Member, referenced by a Subscr. public static int|bool get_user_email_with(str $subscr_or_txn_id, str $os0) Obtains the Email Address for an existing Member, referenced by a Subscr. public static mixed get_user_field(str $field_id, int|str $user_id) Retrieves a field value. public static int|bool get_user_id_with(str $subscr_or_txn_id, str $os0) Obtains the User ID for an existing Member, referenced by a Subscr. public static array|bool get_user_ipn_signup_vars(int|str $user_id, str $subscr_id) Retrieves IPN signup vars & validates their Subscription ID. public static int|str|bool get_user_subscr_or_wp_id(obj $user) Obtains a User's Paid Subscr. public static int|bool ms_user_login_email_can_join_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. public static int|bool ms_user_login_email_exists_but_not_on_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. public static int|bool user_login_email_exists(str $user_login, str $user_email) Determines whether or not a Username/Email is already in the database. public static int users_in_database() Determines the total Users/Members in the database. ( 10 Methods )Method Detail s2member\includes\classes\utils-users.inc.php at line #64 get_user_custom_with() public static str|bool get_user_custom_with(str $subscr_or_txn_id, str $os0) Obtains Custom String for an existing Member, referenced by a Subscr. or Transaction ID. A second lookup parameter can be provided as well ( optional ). Since: 3.5 Parameters: str $subscr_or_txn_id - Either a Paid Subscr. ID, or a Paid Transaction ID. str $os0 - Optional. A second lookup parameter, usually the os0 value for PayPal® integrations. Returns: str|bool - The Custom String value on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #126 get_user_email_with() public static int|bool get_user_email_with(str $subscr_or_txn_id, str $os0) Obtains the Email Address for an existing Member, referenced by a Subscr. or Transaction ID. A second lookup parameter can be provided as well ( optional ). Since: 3.5 Parameters: str $subscr_or_txn_id - Either a Paid Subscr. ID, or a Paid Transaction ID. str $os0 - Optional. A second lookup parameter, usually the os0 value for PayPal® integrations. Returns: int|bool - A User's Email Address on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #276 get_user_field() public static mixed get_user_field(str $field_id, int|str $user_id) Retrieves a field value. Also supports Custom Fields. Since: 3.5 Parameters: str $field_id - Required. A unique Custom Registration Field ID, that you configured with s2Member. Or, this could be set to any property that exists on the WP_User object for a particular User; ( i.e. id, ID, user_login, user_email, first_name, last_name, display_name, ip, IP, s2member_registration_ip, s2member_custom, s2member_subscr_id, s2member_subscr_or_wp_id, s2member_subscr_gateway, s2member_custom_fields, s2member_file_download_access_log, s2member_auto_eot_time, s2member_last_payment_time, s2member_paid_registration_times, s2member_access_role, s2member_access_level, s2member_access_label, s2member_access_ccaps, etc, etc. ). int|str $user_id - Optional. Defaults to the current User's ID. Returns: mixed - The value of the requested field, or false if the field does not exist. Todo: Create a function that returns extensive details regarding Custom Registration Fields configured with s2Member. Until then, you can inspect this array: json_decode ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "custom_reg_fields" ] , true ) . [ back to top ] s2member\includes\classes\utils-users.inc.php at line #96 get_user_id_with() public static int|bool get_user_id_with(str $subscr_or_txn_id, str $os0) Obtains the User ID for an existing Member, referenced by a Subscr. or Transaction ID. A second lookup parameter can be provided as well ( optional ). Since: 3.5 Parameters: str $subscr_or_txn_id - Either a Paid Subscr. ID, or a Paid Transaction ID. str $os0 - Optional. A second lookup parameter, usually the os0 value for PayPal® integrations. Returns: int|bool - A WordPress® User ID on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #160 get_user_ipn_signup_vars() public static array|bool get_user_ipn_signup_vars(int|str $user_id, str $subscr_id) Retrieves IPN signup vars & validates their Subscription ID. The $user_id can be passed in directly; or a lookup can be performed with $subscr_id . Since: 3.5 Parameters: int|str $user_id - Optional. A numeric WordPress® User ID. str $subscr_id - Optional. Can be used instead of passing in a $user_id . If $subscr_id is passed in, it has to match the one found inside the resulting IPN Signup Vars collected by this routine. If neither of these parameters are passed in, the current User is assumed instead, obtained through wp_get_current_user ( ) . Returns: array|bool - A User's IPN Signup Vars on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #185 get_user_subscr_or_wp_id() public static int|str|bool get_user_subscr_or_wp_id(obj $user) Obtains a User's Paid Subscr. ID ( if available ); otherwise their WP User ID. If $user IS passed in, this function will return data from a specific $user , or fail if not possible. If $user is NOT passed in, check the current User/Member. Since: 3.5 Parameters: obj $user - Optional. A WP_User object. In order to check the current User, you must call this function with no arguments/parameters. Returns: int|str|bool - If possible, the User's Paid Subscr. ID, else their WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #252 ms_user_login_email_can_join_blog() public static int|bool ms_user_login_email_can_join_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. This is an alias for: c_ws_plugin__s2member_utils_users::ms_user_login_email_exists_but_not_on_blog(). Returns the WordPress® User ID if they exist. Since: 3.5 Parameters: str $user_login - A User's Username. str $user_email - A User's Email Address. int|str $blog_id - A numeric WordPress® Blog ID. Returns: int|bool - If exists ( but not on Blog ), a WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #229 ms_user_login_email_exists_but_not_on_blog() public static int|bool ms_user_login_email_exists_but_not_on_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. Returns the WordPress® User ID if they exist. Since: 3.5 Parameters: str $user_login - A User's Username. str $user_email - A User's Email Address. int|str $blog_id - A numeric WordPress® Blog ID. Returns: int|bool - If exists ( but not on Blog ), a WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #206 user_login_email_exists() public static int|bool user_login_email_exists(str $user_login, str $user_email) Determines whether or not a Username/Email is already in the database. Returns the WordPress® User ID if they exist. Since: 3.5 Parameters: str $user_login - A User's Username. str $user_email - A User's Email Address. Returns: int|bool - If exists, a WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #38 users_in_database() public static int users_in_database() Determines the total Users/Members in the database. Since: 3.5 Returns: int - Number of Users in the database, total. [ back to top ] Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 2:10 pm


]]>
2011-07-11T17:27:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=27634#p27634 <![CDATA[s2Member v110710 / Package Class: s2Member...]]>
s2Member v110710
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: July 11, 2011, 6:27 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail Package s2Member\Utilities s2member\includes\classes\utils-users.inc.php at line #28 Class c_ws_plugin__s2member_utils_users c_ws_plugin__s2member_utils_users public class c_ws_plugin__s2member_utils_users User utilities. Since: 3.5 ( 10 Methods )Method Summary public static str|bool get_user_custom_with(str $subscr_or_txn_id, str $os0) Obtains Custom String for an existing Member, referenced by a Subscr. public static int|bool get_user_email_with(str $subscr_or_txn_id, str $os0) Obtains the Email Address for an existing Member, referenced by a Subscr. public static mixed get_user_field(str $field_id, int|str $user_id) Retrieves a field value. public static int|bool get_user_id_with(str $subscr_or_txn_id, str $os0) Obtains the User ID for an existing Member, referenced by a Subscr. public static array|bool get_user_ipn_signup_vars(int|str $user_id, str $subscr_id) Retrieves IPN signup vars & validates their Subscription ID. public static int|str|bool get_user_subscr_or_wp_id(obj $user) Obtains a User's Paid Subscr. public static int|bool ms_user_login_email_can_join_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. public static int|bool ms_user_login_email_exists_but_not_on_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. public static int|bool user_login_email_exists(str $user_login, str $user_email) Determines whether or not a Username/Email is already in the database. public static int users_in_database() Determines the total Users/Members in the database. ( 10 Methods )Method Detail s2member\includes\classes\utils-users.inc.php at line #64 get_user_custom_with() public static str|bool get_user_custom_with(str $subscr_or_txn_id, str $os0) Obtains Custom String for an existing Member, referenced by a Subscr. or Transaction ID. A second lookup parameter can be provided as well ( optional ). Since: 3.5 Parameters: str $subscr_or_txn_id - Either a Paid Subscr. ID, or a Paid Transaction ID. str $os0 - Optional. A second lookup parameter, usually the os0 value for PayPal® integrations. Returns: str|bool - The Custom String value on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #126 get_user_email_with() public static int|bool get_user_email_with(str $subscr_or_txn_id, str $os0) Obtains the Email Address for an existing Member, referenced by a Subscr. or Transaction ID. A second lookup parameter can be provided as well ( optional ). Since: 3.5 Parameters: str $subscr_or_txn_id - Either a Paid Subscr. ID, or a Paid Transaction ID. str $os0 - Optional. A second lookup parameter, usually the os0 value for PayPal® integrations. Returns: int|bool - A User's Email Address on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #276 get_user_field() public static mixed get_user_field(str $field_id, int|str $user_id) Retrieves a field value. Also supports Custom Fields. Since: 3.5 Parameters: str $field_id - Required. A unique Custom Registration Field ID, that you configured with s2Member. Or, this could be set to any property that exists on the WP_User object for a particular User; ( i.e. id, ID, user_login, user_email, first_name, last_name, display_name, ip, IP, s2member_registration_ip, s2member_custom, s2member_subscr_id, s2member_subscr_or_wp_id, s2member_subscr_gateway, s2member_custom_fields, s2member_file_download_access_log, s2member_auto_eot_time, s2member_last_payment_time, s2member_paid_registration_times, s2member_access_role, s2member_access_level, s2member_access_label, s2member_access_ccaps, etc, etc. ). int|str $user_id - Optional. Defaults to the current User's ID. Returns: mixed - The value of the requested field, or false if the field does not exist. Todo: Create a function that returns extensive details regarding Custom Registration Fields configured with s2Member. Until then, you can inspect this array: json_decode ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "custom_reg_fields" ] , true ) . [ back to top ] s2member\includes\classes\utils-users.inc.php at line #96 get_user_id_with() public static int|bool get_user_id_with(str $subscr_or_txn_id, str $os0) Obtains the User ID for an existing Member, referenced by a Subscr. or Transaction ID. A second lookup parameter can be provided as well ( optional ). Since: 3.5 Parameters: str $subscr_or_txn_id - Either a Paid Subscr. ID, or a Paid Transaction ID. str $os0 - Optional. A second lookup parameter, usually the os0 value for PayPal® integrations. Returns: int|bool - A WordPress® User ID on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #160 get_user_ipn_signup_vars() public static array|bool get_user_ipn_signup_vars(int|str $user_id, str $subscr_id) Retrieves IPN signup vars & validates their Subscription ID. The $user_id can be passed in directly; or a lookup can be performed with $subscr_id . Since: 3.5 Parameters: int|str $user_id - Optional. A numeric WordPress® User ID. str $subscr_id - Optional. Can be used instead of passing in a $user_id . If $subscr_id is passed in, it has to match the one found inside the resulting IPN Signup Vars collected by this routine. If neither of these parameters are passed in, the current User is assumed instead, obtained through wp_get_current_user ( ) . Returns: array|bool - A User's IPN Signup Vars on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #185 get_user_subscr_or_wp_id() public static int|str|bool get_user_subscr_or_wp_id(obj $user) Obtains a User's Paid Subscr. ID ( if available ); otherwise their WP User ID. If $user IS passed in, this function will return data from a specific $user , or fail if not possible. If $user is NOT passed in, check the current User/Member. Since: 3.5 Parameters: obj $user - Optional. A WP_User object. In order to check the current User, you must call this function with no arguments/parameters. Returns: int|str|bool - If possible, the User's Paid Subscr. ID, else their WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #252 ms_user_login_email_can_join_blog() public static int|bool ms_user_login_email_can_join_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. This is an alias for: c_ws_plugin__s2member_utils_users::ms_user_login_email_exists_but_not_on_blog(). Returns the WordPress® User ID if they exist. Since: 3.5 Parameters: str $user_login - A User's Username. str $user_email - A User's Email Address. int|str $blog_id - A numeric WordPress® Blog ID. Returns: int|bool - If exists ( but not on Blog ), a WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #229 ms_user_login_email_exists_but_not_on_blog() public static int|bool ms_user_login_email_exists_but_not_on_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. Returns the WordPress® User ID if they exist. Since: 3.5 Parameters: str $user_login - A User's Username. str $user_email - A User's Email Address. int|str $blog_id - A numeric WordPress® Blog ID. Returns: int|bool - If exists ( but not on Blog ), a WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #206 user_login_email_exists() public static int|bool user_login_email_exists(str $user_login, str $user_email) Determines whether or not a Username/Email is already in the database. Returns the WordPress® User ID if they exist. Since: 3.5 Parameters: str $user_login - A User's Username. str $user_email - A User's Email Address. Returns: int|bool - If exists, a WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #38 users_in_database() public static int users_in_database() Determines the total Users/Members in the database. Since: 3.5 Returns: int - Number of Users in the database, total. [ back to top ] Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:27 pm


]]>
2011-07-11T15:13:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=27015#p27015 <![CDATA[s2Member v110710 / Package Class: s2Member...]]>
s2Member v110710
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: July 11, 2011, 4:13 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail Package s2Member\Utilities s2member\includes\classes\utils-users.inc.php at line #28 Class c_ws_plugin__s2member_utils_users c_ws_plugin__s2member_utils_users public class c_ws_plugin__s2member_utils_users User utilities. Since: 3.5 ( 10 Methods )Method Summary public static str|bool get_user_custom_with(str $subscr_or_txn_id, str $os0) Obtains Custom String for an existing Member, referenced by a Subscr. public static int|bool get_user_email_with(str $subscr_or_txn_id, str $os0) Obtains the Email Address for an existing Member, referenced by a Subscr. public static mixed get_user_field(str $field_id, int|str $user_id) Retrieves a field value. public static int|bool get_user_id_with(str $subscr_or_txn_id, str $os0) Obtains the User ID for an existing Member, referenced by a Subscr. public static array|bool get_user_ipn_signup_vars(int|str $user_id, str $subscr_id) Retrieves IPN signup vars & validates their Subscription ID. public static int|str|bool get_user_subscr_or_wp_id(obj $user) Obtains a User's Paid Subscr. public static int|bool ms_user_login_email_can_join_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. public static int|bool ms_user_login_email_exists_but_not_on_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. public static int|bool user_login_email_exists(str $user_login, str $user_email) Determines whether or not a Username/Email is already in the database. public static int users_in_database() Determines the total Users/Members in the database. ( 10 Methods )Method Detail s2member\includes\classes\utils-users.inc.php at line #64 get_user_custom_with() public static str|bool get_user_custom_with(str $subscr_or_txn_id, str $os0) Obtains Custom String for an existing Member, referenced by a Subscr. or Transaction ID. A second lookup parameter can be provided as well ( optional ). Since: 3.5 Parameters: str $subscr_or_txn_id - Either a Paid Subscr. ID, or a Paid Transaction ID. str $os0 - Optional. A second lookup parameter, usually the os0 value for PayPal® integrations. Returns: str|bool - The Custom String value on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #126 get_user_email_with() public static int|bool get_user_email_with(str $subscr_or_txn_id, str $os0) Obtains the Email Address for an existing Member, referenced by a Subscr. or Transaction ID. A second lookup parameter can be provided as well ( optional ). Since: 3.5 Parameters: str $subscr_or_txn_id - Either a Paid Subscr. ID, or a Paid Transaction ID. str $os0 - Optional. A second lookup parameter, usually the os0 value for PayPal® integrations. Returns: int|bool - A User's Email Address on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #276 get_user_field() public static mixed get_user_field(str $field_id, int|str $user_id) Retrieves a field value. Also supports Custom Fields. Since: 3.5 Parameters: str $field_id - Required. A unique Custom Registration Field ID, that you configured with s2Member. Or, this could be set to any property that exists on the WP_User object for a particular User; ( i.e. id, ID, user_login, user_email, first_name, last_name, display_name, ip, IP, s2member_registration_ip, s2member_custom, s2member_subscr_id, s2member_subscr_or_wp_id, s2member_subscr_gateway, s2member_custom_fields, s2member_file_download_access_log, s2member_auto_eot_time, s2member_last_payment_time, s2member_paid_registration_times, s2member_access_role, s2member_access_level, s2member_access_label, s2member_access_ccaps, etc, etc. ). int|str $user_id - Optional. Defaults to the current User's ID. Returns: mixed - The value of the requested field, or false if the field does not exist. Todo: Create a function that returns extensive details regarding Custom Registration Fields configured with s2Member. Until then, you can inspect this array: json_decode ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "custom_reg_fields" ] , true ) . [ back to top ] s2member\includes\classes\utils-users.inc.php at line #96 get_user_id_with() public static int|bool get_user_id_with(str $subscr_or_txn_id, str $os0) Obtains the User ID for an existing Member, referenced by a Subscr. or Transaction ID. A second lookup parameter can be provided as well ( optional ). Since: 3.5 Parameters: str $subscr_or_txn_id - Either a Paid Subscr. ID, or a Paid Transaction ID. str $os0 - Optional. A second lookup parameter, usually the os0 value for PayPal® integrations. Returns: int|bool - A WordPress® User ID on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #160 get_user_ipn_signup_vars() public static array|bool get_user_ipn_signup_vars(int|str $user_id, str $subscr_id) Retrieves IPN signup vars & validates their Subscription ID. The $user_id can be passed in directly; or a lookup can be performed with $subscr_id . Since: 3.5 Parameters: int|str $user_id - Optional. A numeric WordPress® User ID. str $subscr_id - Optional. Can be used instead of passing in a $user_id . If $subscr_id is passed in, it has to match the one found inside the resulting IPN Signup Vars collected by this routine. If neither of these parameters are passed in, the current User is assumed instead, obtained through wp_get_current_user ( ) . Returns: array|bool - A User's IPN Signup Vars on success, else false on failure. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #185 get_user_subscr_or_wp_id() public static int|str|bool get_user_subscr_or_wp_id(obj $user) Obtains a User's Paid Subscr. ID ( if available ); otherwise their WP User ID. If $user IS passed in, this function will return data from a specific $user , or fail if not possible. If $user is NOT passed in, check the current User/Member. Since: 3.5 Parameters: obj $user - Optional. A WP_User object. In order to check the current User, you must call this function with no arguments/parameters. Returns: int|str|bool - If possible, the User's Paid Subscr. ID, else their WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #252 ms_user_login_email_can_join_blog() public static int|bool ms_user_login_email_can_join_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. This is an alias for: c_ws_plugin__s2member_utils_users::ms_user_login_email_exists_but_not_on_blog(). Returns the WordPress® User ID if they exist. Since: 3.5 Parameters: str $user_login - A User's Username. str $user_email - A User's Email Address. int|str $blog_id - A numeric WordPress® Blog ID. Returns: int|bool - If exists ( but not on Blog ), a WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #229 ms_user_login_email_exists_but_not_on_blog() public static int|bool ms_user_login_email_exists_but_not_on_blog(str $user_login, str $user_email, int|str $blog_id) Determines whether or not a Username/Email is already in the database for this Blog. Returns the WordPress® User ID if they exist. Since: 3.5 Parameters: str $user_login - A User's Username. str $user_email - A User's Email Address. int|str $blog_id - A numeric WordPress® Blog ID. Returns: int|bool - If exists ( but not on Blog ), a WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #206 user_login_email_exists() public static int|bool user_login_email_exists(str $user_login, str $user_email) Determines whether or not a Username/Email is already in the database. Returns the WordPress® User ID if they exist. Since: 3.5 Parameters: str $user_login - A User's Username. str $user_email - A User's Email Address. Returns: int|bool - If exists, a WordPress® User ID, else false. [ back to top ] s2member\includes\classes\utils-users.inc.php at line #38 users_in_database() public static int users_in_database() Determines the total Users/Members in the database. Since: 3.5 Returns: int - Number of Users in the database, total. [ back to top ] Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Class Summary Classes Hooks/Filters Field Summary | Method Summary | Field Detail | Method Detail(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 3:13 pm


]]>
2011-07-09T05:39:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12970&p=25264#p25264 <![CDATA[s2Member v111220 / Package Class: s2Member...]]>
s2Member v111220
Package Class: s2Member\Utilities\c_ws_plugin__s2member_utils_users
Docs updated: December 20, 2011, 9:49 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 5:39 am


]]>