本文整理汇总了PHP中c_ws_plugin__s2member_utils_users::user_login_email_exists方法的典型用法代码示例。如果您正苦于以下问题:PHP c_ws_plugin__s2member_utils_users::user_login_email_exists方法的具体用法?PHP c_ws_plugin__s2member_utils_users::user_login_email_exists怎么用?PHP c_ws_plugin__s2member_utils_users::user_login_email_exists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类c_ws_plugin__s2member_utils_users
的用法示例。
在下文中一共展示了c_ws_plugin__s2member_utils_users::user_login_email_exists方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ms_user_login_email_exists_but_not_on_blog
/**
* Determines whether or not a Username/Email is already in the database for this Blog.
*
* Returns the WordPress User ID if they exist.
*
* @package s2Member\Utilities
* @since 3.5
*
* @param string $user_login A User's Username.
* @param string $user_email A User's Email Address.
* @param int|string $blog_id A numeric WordPress Blog ID.
*
* @return int|bool If exists *(but not on Blog)*, a WordPress User ID, else false.
*/
public static function ms_user_login_email_exists_but_not_on_blog($user_login = '', $user_email = '', $blog_id = 0)
{
if ($user_login && $user_email) {
// Only if we have both of these.
if (is_multisite() && ($user_id = c_ws_plugin__s2member_utils_users::user_login_email_exists($user_login, $user_email)) && !is_user_member_of_blog($user_id, $blog_id)) {
return $user_id;
}
}
return FALSE;
// Otherwise, return false.
}
示例2: ms_user_login_email_exists_but_not_on_blog
/**
* Determines whether or not a Username/Email is already in the database for this Blog.
*
* Returns the WordPress User ID if they exist.
*
* @package s2Member\Utilities
* @since 3.5
*
* @param str $user_login A User's Username.
* @param str $user_email A User's Email Address.
* @param int|str $blog_id A numeric WordPress Blog ID.
* @return int|bool If exists *(but not on Blog)*, a WordPress User ID, else false.
*/
public static function ms_user_login_email_exists_but_not_on_blog($user_login = FALSE, $user_email = FALSE, $blog_id = FALSE)
{
if ($user_login && $user_email) {
if (is_multisite() && ($user_id = c_ws_plugin__s2member_utils_users::user_login_email_exists($user_login, $user_email)) && !is_user_member_of_blog($user_id, $blog_id)) {
return $user_id;
}
}
return false;
}
示例3: ms_user_login_email_exists_but_not_on_blog
/**
* Determines whether or not a Username/Email is already in the database for this Blog.
*
* Returns the WordPress® User ID if they exist.
*
* @package s2Member\Utilities
* @since 3.5
*
* @param str $user_login A User's Username.
* @param str $user_email A User's Email Address.
* @param int|str $blog_id A numeric WordPress® Blog ID.
* @return int|bool If exists *( but not on Blog )*, a WordPress® User ID, else false.
*/
public static function ms_user_login_email_exists_but_not_on_blog($user_login = FALSE, $user_email = FALSE, $blog_id = FALSE)
{
if ($user_login && $user_email) {
/* Only if we have both of these. */
if (is_multisite() && ($user_id = c_ws_plugin__s2member_utils_users::user_login_email_exists($user_login, $user_email)) && !is_user_member_of_blog($user_id, $blog_id)) {
return $user_id;
}
}
/**/
return false;
/* Else return false. */
}