[wordpress插件] Allow Multiple Accounts允许多个帐户

wordpress 插件 文章 2020-02-16 12:20 619 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

Allow multiple user accounts to be created, registered, and updated having the same email address.

允许使用相同的电子邮件地址创建,注册和更新多个用户帐户。

By default, WordPress only allows a specific email address to be used for a single user account.

默认情况下,WordPress仅允许将特定电子邮件地址用于单个用户帐户。

This plugin removes that restriction.

该插件消除了该限制。

The plugin's settings page (accessed via Users -> Multiple Accounts or via the Settings link next to the plugin on the Manage Plugins page) provides the ability to allow only certain email addresses the ability to have multiple accounts (such as if you

插件的设置页面(可通过“用户->多个帐户”或通过“管理插件”页面上插件旁边的“设置”链接访问)可仅允许某些电子邮件地址拥有多个帐户(例如,如果您

only want admins to have that ability; by default all email addresses can be used more than once).

只希望管理员具有此功能;默认情况下,所有电子邮件地址都可以使用多次。

You may also specify a limit to the number of accounts an email address can have (by default there is no limit).

您还可以指定一个电子邮件地址可以拥有的帐户数量的限制(默认情况下没有限制)。

The settings page also provides a table listing all user accounts that share email addresses (see screenshot).

“设置”页面还提供了一个表格,其中列出了共享电子邮件地址的所有用户帐户(请参见屏幕截图)。

Compatible with Multisite and BuddyPress as well.

还与Multisite和BuddyPress兼容。

Links: Plugin Homepage |

链接:插件主页 |

Plugin Directory Page |

插件目录页面 |

Author Homepage

作者主页

Template Tags

模板标签

The plugin provides three optional template tags for use in your theme templates.

该插件提供了三个可选模板标签,供您在主题模板中使用。

Functions

功能

    • <?php c2c_count_multiple_accounts($ email);

      ?>

    • ?>

    Returns a count of the number of users associated with the given email.

    返回与给定电子邮件关联的用户数的计数。

      • <代码> <?php c2c_get_users_by_email($ email);

        ?>

      • ?>

      Returns the users associated with the given email.

      返回与给定电子邮件关联的用户。

        • <?php c2c_has_multiple_accounts($ email);

          ?>

        • ?>

        Returns a boolean indicating if the given email is associated with more than one user account.

        返回一个布尔值,指示给定的电子邮件是否与多个用户帐户相关联。

        Arguments

        参数

          • $email (string)

          • $ email (字符串)

            An email address.

          • 电子邮件地址。

          Filters

          过滤器

          The plugin exposes three filters for hooking.

          该插件提供了三个过滤器以进行挂钩。

          Typically, customizations utilizing these hooks would be put into your active theme’s functions.php file, or used by another plugin.

          通常,利用这些钩子进行的自定义将被放入活动主题的functions.php文件中,或由另一个插件使用。

          c2c_count_multiple_accounts (filter)

          c2c_count_multiple_accounts(过滤器)

          The 'c2c_count_multiple_accounts' hook allows you to use an alternative approach to safely invoke c2c_count_multiple_accounts() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't

          通过'c2c_count_multiple_accounts'挂钩,您可以使用另一种方法安全地调用 c2c_count_multiple_accounts(),这样,如果停用或删除了插件,则对函数的调用不会

          cause errors in your site.

          导致您的网站出现错误。

          Arguments:

          参数:

            • same as for c2c_count_multiple_accounts()
            • c2c_count_multiple_accounts() 相同

            Example:

            示例:

            Instead of:

            代替:

              <?php echo c2c_count_multiple_accounts($ email); 

            ?>

            ?>

            Do:

            做:

              <?php echo apply_filters('c2c_count_multiple_accounts',$ email); 

            ?>

            ?>

            c2c_get_users_by_email (filter)

            c2c_get_users_by_email(过滤器)

            The 'c2c_get_users_by_email' hook allows you to use an alternative approach to safely invoke c2c_get_users_by_email() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't

            通过'c2c_get_users_by_email'挂钩,您可以使用另一种方法安全地调用 c2c_get_users_by_email(),这样,如果停用或删除了插件,则对函数的调用不会

            cause errors in your site.

            导致您的网站出现错误。

            Arguments:

            参数:

              • same as for c2c_get_users_by_email()
              • c2c_get_users_by_email() 相同

              Example:

              示例:

              Instead of:

              代替:

                <?php echo c2c_get_users_by_email($ email); 

              ?>

              ?>

              Do:

              做:

                <?php echo apply_filters('c2c_get_users_by_email',$ email); 

              ?>

              ?>

              c2c_has_multiple_accounts (filter)

              c2c_has_multiple_accounts(过滤器)

              The 'c2c_has_multiple_accounts' hook allows you to use an alternative approach to safely invoke c2c_has_multiple_accounts() in such a way that if the plugin were deactivated or deleted, then your calls to the function won't

              通过'c2c_has_multiple_accounts'挂钩,您可以使用另一种方法安全地调用 c2c_has_multiple_accounts(),这样,如果插件被停用或删除,则您对函数的调用不会

              cause errors in your site.

              导致您的网站出现错误。

              Arguments:

              参数:

                • same as for c2c_has_multiple_accounts()
                • c2c_has_multiple_accounts() 相同

                Example:

                示例:

                Instead of:

                代替:

                  <?php echo c2c_has_multiple_accounts($ email); 

                ?>

                ?>

                Do:

                做:

                  <?php echo apply_filters('c2c_has_multiple_accounts',$ email); 

                ?>

                ?>

安装步骤

    1. Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting
    2. 无论是安装还是更新(无论是此插件还是其他插件),始终建议在开始之前备份您的数据

    3. Unzip allow-multiple-accounts.zip inside the /wp-content/plugins/ directory for your site (or install via the built-in WordPress plugin installer)

      在您网站的 / wp-content / plugins / 目录内

    4. 解压 allow-multiple-accounts.zip (或通过内置的WordPress插件安装程序安装)

    5. Activate the plugin through the ‘Plugins’ admin menu in WordPress
    6. 通过WordPress中的“插件”管理菜单激活插件

    7. Go to the Users -> Multiple Accounts admin settings page (which you can also get to via the Settings link next to the plugin on the Manage Plugins page) and configure settings.

    8. 转到“用户->多个帐户”管理设置页面(也可以通过“管理插件”页面上插件旁边的“设置”链接进入该页面)并配置设置。

      On a Multisite install, go to My Sites -> Network Admin -> Users -> Multiple Accounts.

    9. 在多站点安装中,转到我的站点->网络管理员->用户->多个帐户。

下载地址

https://downloads.wordpress.org/plugin/allow-multiple-accounts.3.0.4.zip

https://downloads.wordpress.org/plugin/allow-multiple-accounts.3.0.4.zip

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] DeTaxoDeTaxo
[wordpress插件] Blogroll Dropdown LinksBlogroll下拉链接
[wordpress插件] Buzz this Button &#8211; Google official api按下此按钮-Google官方API
[wordpress插件] Currency Converter Calculator货币转换器计算器
[wordpress插件] DP ALTerminator &#8211; Missing ALT managerDP ALTerminator –缺少ALT管理员
随便看看
微信公众号免300认证教程 4964
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 4083
小程序广告组件通过审核,但是小程序内没有显示广告? 4161
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8038
问题? 7265
如何快速搭建抽奖助手小程序(无需代码知识) 5048
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6006
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5519
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5215
如何解决渲染层网络错误Failed to load media? 16566