当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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.
 }
开发者ID:codeforest,项目名称:s2member,代码行数:25,代码来源:utils-users.inc.php

示例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;
 }
开发者ID:donwea,项目名称:nhap.org,代码行数:22,代码来源:utils-users.inc.php

示例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. */
 }
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:25,代码来源:utils-users.inc.php


注:本文中的c_ws_plugin__s2member_utils_users::user_login_email_exists方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。