AI助手支持GPT4.0
CiviCRM WordPress Member Sync keeps a WordPress user in sync with a CiviCRM membership by granting either a role or capabilities to a WordPress user who has that membership.
CiviCRM WordPress成员同步通过将角色或功能授予具有该成员身份的WordPress用户,从而使WordPress用户与CiviCRM成员身份保持同步。 p>
This enables you to have, among other things, members-only content on your website that is only accessible to current members as defined by the membership types and status rules that you set up in this plugin’s settings.
除其他功能外,这使您可以在网站上拥有仅针对会员的内容,该内容仅由您在此插件设置中设置的会员类型和状态规则所定义的当前会员才能访问。
CiviCRM WordPress Member Sync is compatible with both “Members” and “成员”和“
/groups/">Groups” for managing members-only content in WordPress.
/ groups /“>网上论坛”,用于管理WordPress中仅限会员的内容。
See the Installation section for details.
有关详细信息,请参见“安装”部分。 p>
This plugin requires a minimum of WordPress 4.4 and CiviCRM 4.6.
此插件至少需要 WordPress 4.4 em>和 CiviCRM 4.6 em>。It is compatible with the Members and Groups它与成员和组兼容 plugins.插件。Please refer to the Installation page for configuration instructions.请参阅“安装”页面以获取配置说明。 p>It is also strongly recommended that you also install CiviCRM Admin Utilities and have version 0.6.8 or greater强烈建议您还安装 CiviCRM Admin Utilities ,并安装0.6.8或更高版本activated.活性。Make sure the checkbox labelled “Check this to fix the Contact ‘soft delete’ process” is checked so that Contacts that have been “soft deleted” have their corresponding WordPress User’s status updated.确保选中“选中此复选框以修复联系人的“软删除”过程”复选框,以确保已被“软删除”的联系人的相应WordPress用户状态已更新。 p>Plugin Development插件开发 h3>This plugin is in active development.该插件正在开发中。For feature requests and bug reports (or if you're a plugin author and want to contribute) please visit the plugin's GitHub repository.nofollow“> GitHub存储库。 p>Shouts Out To…向…大喊…… h3>This plugin builds on the work done by 工作上" rel="nofollow">Tadpole Collective and originally developed by Jag Kandasamy.“ rel =“ nofollow”> T集体,最初由 Jag Kandasamy 开发。Kudos.荣誉。 p>
It is compatible with the Members and Groups它与成员和组兼容 plugins.插件。
它与成员和组兼容 plugins.
Please refer to the Installation page for configuration instructions.
请参阅“安装”页面以获取配置说明。 p>
It is also strongly recommended that you also install CiviCRM Admin Utilities and have version 0.6.8 or greater
强烈建议您还安装 CiviCRM Admin Utilities ,并安装0.6.8或更高版本
activated.
活性。
Make sure the checkbox labelled “Check this to fix the Contact ‘soft delete’ process” is checked so that Contacts that have been “soft deleted” have their corresponding WordPress User’s status updated.
确保选中“选中此复选框以修复联系人的“软删除”过程”复选框,以确保已被“软删除”的联系人的相应WordPress用户状态已更新。 p>
This plugin is in active development.
该插件正在开发中。
For feature requests and bug reports (or if you're a plugin author and want to contribute) please visit the plugin's GitHub repository.
nofollow“> GitHub存储库。 p>
This plugin builds on the work done by 工作上
" rel="nofollow">Tadpole Collective and originally developed by Jag Kandasamy.
“ rel =“ nofollow”> T集体,最初由 Jag Kandasamy 开发。
Kudos.
荣誉。 p>
/wp-content/plugins/
/ wp-content / plugins / code>目录 li>Make sure CiviCRM is activated and properly configured确保已激活CiviCRM并对其进行了正确配置 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>
ol>
The first thing to decide is whether you want CiviCRM WordPress Member Sync to synchronize CiviCRM Memberships to WordPress Roles or WordPress Capabilities.
要决定的第一件事是您是否希望CiviCRM WordPress成员同步将CiviCRM成员资格同步到WordPress角色或WordPress功能。
If, for example, you need your WordPress user roles to be independent of membership status, then choose Capabilities.
例如,如果您需要WordPress用户角色独立于成员身份状态,则选择功能。
The default synchronisation method is Capabilities, because WordPress has limited support for multiple roles.
默认的同步方法是“功能”,因为WordPress对多个角色的支持有限。 p>
If you have a large number of Membership Types, you can add the following code to your wp-config.php file:
wp-config.php
如果会员类型数量很多,可以将以下代码添加到 wp-config.php code>文件中: p>define( 'CIVI_WP_MEMBER_SYNC_MULTIPLE', true ); define('CIVI_WP_MEMBER_SYNC_MULTIPLE',true); code> pre>This will allow you to select multiple Membership Types when adding an Association Rule.这将允许您在添加关联规则时选择多个成员资格类型。When saved, one Rule will be created for each of the selected Membership Types.保存后,将为每个选定的成员资格类型创建一个规则。This could save a lot of time in setting up your Association Rules.这样可以节省大量时间来设置关联规则。Thanks to Foxpress Design for funding this upgrade.感谢 Foxpress Design 为此次升级提供资金。 p>Working with Capabilities使用功能 h4>Visit the plugin’s admin page at “Settings” –> “CiviCRM WordPress Member Sync”.在“设置”->“ CiviCRM WordPress成员同步”上访问插件的管理页面。 li>Select “Capabilities” as the sync method选择“功能”作为同步方法 li>Click on “Add Association Rule” to create a rule.单击“添加关联规则”以创建规则。You will need to create a rule for every CiviCRM membership type you would like to synchronize.您将需要为要同步的每种CiviCRM成员资格类型创建一个规则。For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress capabilities.对于每种会员类型,您将需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress功能。It is most common to define “New”, “Current” and “Grace” as current.最常见的是将“新”,“当前”和“宽限期”定义为当前。Similarly, select which states represent the “expired” status thereby removing the WordPress capabilities from the user.同样,选择哪些状态代表“过期”状态,从而从用户删除WordPress功能。It is most common to define “Expired”, “Pending”, “Cancelled” and “Deceased” as the expired status.最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。 li>“Current Status” adds a “Membership Capability” to the WordPress user, while “Expired Status” removes the “Membership Capability” from the WordPress user.“当前状态”向WordPress用户添加“会员能力”,而“过期状态”则从WordPress用户删除“会员能力”。This capability will be of the form “civimember_ID”, where “ID” is the numeric ID of the Membership Type.此功能的形式为“ civimember_ID”,其中“ ID”是成员资格类型的数字ID。So, for Membership Type 2, the capability will be “civimember_2”.因此,对于会员类型2,功能为“ civimember_2”。 li>Note: If you have the “Groups” plugin active, then all “civimember_ID” 注意 strong>:如果您具有“ 组”插件处于活动状态,则所有“ civimember_ID”capabilities will be added to its custom capabilities as well as to the list of capabilities used to enforce read access on posts.功能将被添加到其自定义功能以及用于强制发布帖子的阅读权限的功能列表中。If you have Groups 2.8.0 or greater installed, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.如果您安装了Groups 2.8.0或更高版本,则可以选择指定一个或多个“当前”和“过期”组,根据其成员身份是“当前”还是“过期”,将用户同步到这些组。 li>Note: If you have the “Members” plugin active, then the “restrict_content” 注意 strong>:如果您具有“ 成员”插件处于活动状态,则“ restrict_content”capability will also be added.功能也将被添加。 li>An additional “Membership Status Capability” will also be added to the WordPress user that is tied to the status of their membership.还将向WordPress用户添加一个附加的“会员资格功能”,该功能与其会员资格相关。This capability will be of the form “civimember_ID_NUM”, where “ID” is the numeric ID of the Membership Type and “NUM” is the numeric ID of the “Membership Status”.此功能的格式为“ civimember_ID_NUM”,其中“ ID”是会员类型的数字ID,“ NUM”是“会员状态”的数字ID。So, for Membership Type 2 with Membership Status 4, the capability will be “civimember_2_4”.因此,对于具有会员状态4的会员类型2,该功能将为“ civimember_2_4”。 li> ol>Working with Roles使用角色 h4>Visit the plugin’s admin page at “Settings” –> “CiviCRM WordPress Member Sync”.在“设置”->“ CiviCRM WordPress成员同步”上访问插件的管理页面。 li>Select “Roles” as the sync method选择“角色”作为同步方法 li>Click on “Add Association Rule” to create a rule.单击“添加关联规则”以创建规则。You will need to create a rule for every CiviCRM membership type you would like to synchronize.您将需要为要同步的每种CiviCRM成员资格类型创建一个规则。For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress role.对于每种会员类型,您需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress角色。It is most common to define “New”, “Current” and “Grace” as current.最常见的是将“新”,“当前”和“宽限期”定义为当前。Similarly, select which states represent the “expired” status thereby removing the WordPress role from the user.同样,选择哪些状态代表“过期”状态,从而从用户中删除WordPress角色。It is most common to define “Expired”, “Pending”, “Cancelled” and “Deceased” as the expired status.最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。With ‘roles’ as your synchronization method, also set the role to be assigned if the membership has expired in “Expiry Role”.使用“角色”作为您的同步方法,如果“过期角色”中的成员资格已过期,还可以设置要分配的角色。This is not needed when working with Capabilities.使用功能时不需要这样做。 li>It may sometimes be necessary to manually synchronize users.有时可能需要手动同步用户。Click on the “Manually Synchronize” tab on the admin page to do so.单击管理页面上的“手动同步”选项卡。You will want to use this when you initially configure this plugin to synchronize your existing users.最初配置此插件以同步现有用户时,您将希望使用此功能。 li>Note: If you have the “Groups” plugin activated and it is version 2.8. 注意 strong>:如果您已激活“ 组”插件,并且该插件的版本为2.8。 0 or greater, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.0或更大,那么您可以选择指定一个或多个“当前”和“过期”组,用户将根据其成员身份是“当前”还是“过期”而与之同步。 li> ol>Manual Synchronize手动同步 h4>It may sometimes be necessary to manually synchronize users.有时可能需要手动同步用户。Click on the “Manually Synchronize” tab on the admin page to do so.单击管理页面上的“手动同步”选项卡。You will want to use this when you initially configure this plugin to synchronize your existing users.最初配置此插件以同步现有用户时,将需要使用此功能。 p>Test Test Test测试测试测试 h4>Note: Be sure to test this plugin thoroughly before using it in a production environment. 注意 strong>:在生产环境中使用该插件之前,请务必对其进行彻底测试。At minimum, you should log in as a test user to ensure you have been granted the appropriate role or capabilities when that user is given membership.至少,您应该以测试用户身份登录,以确保在授予该用户成员身份时,已被授予适当的角色或功能。Then take away the membership for the user in their CiviCRM record, log back in as the test user, and make sure you no longer have that role or those capabilities.然后删除其CiviCRM记录中该用户的成员身份,以测试用户身份重新登录,并确保您不再具有该角色或那些功能。 p>
wp-config.php code>文件中: p>define( 'CIVI_WP_MEMBER_SYNC_MULTIPLE', true ); define('CIVI_WP_MEMBER_SYNC_MULTIPLE',true); code> pre>This will allow you to select multiple Membership Types when adding an Association Rule.这将允许您在添加关联规则时选择多个成员资格类型。When saved, one Rule will be created for each of the selected Membership Types.保存后,将为每个选定的成员资格类型创建一个规则。This could save a lot of time in setting up your Association Rules.这样可以节省大量时间来设置关联规则。Thanks to Foxpress Design for funding this upgrade.感谢 Foxpress Design 为此次升级提供资金。 p>Working with Capabilities使用功能 h4>Visit the plugin’s admin page at “Settings” –> “CiviCRM WordPress Member Sync”.在“设置”->“ CiviCRM WordPress成员同步”上访问插件的管理页面。 li>Select “Capabilities” as the sync method选择“功能”作为同步方法 li>Click on “Add Association Rule” to create a rule.单击“添加关联规则”以创建规则。You will need to create a rule for every CiviCRM membership type you would like to synchronize.您将需要为要同步的每种CiviCRM成员资格类型创建一个规则。For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress capabilities.对于每种会员类型,您将需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress功能。It is most common to define “New”, “Current” and “Grace” as current.最常见的是将“新”,“当前”和“宽限期”定义为当前。Similarly, select which states represent the “expired” status thereby removing the WordPress capabilities from the user.同样,选择哪些状态代表“过期”状态,从而从用户删除WordPress功能。It is most common to define “Expired”, “Pending”, “Cancelled” and “Deceased” as the expired status.最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。 li>“Current Status” adds a “Membership Capability” to the WordPress user, while “Expired Status” removes the “Membership Capability” from the WordPress user.“当前状态”向WordPress用户添加“会员能力”,而“过期状态”则从WordPress用户删除“会员能力”。This capability will be of the form “civimember_ID”, where “ID” is the numeric ID of the Membership Type.此功能的形式为“ civimember_ID”,其中“ ID”是成员资格类型的数字ID。So, for Membership Type 2, the capability will be “civimember_2”.因此,对于会员类型2,功能为“ civimember_2”。 li>Note: If you have the “Groups” plugin active, then all “civimember_ID” 注意 strong>:如果您具有“ 组”插件处于活动状态,则所有“ civimember_ID”capabilities will be added to its custom capabilities as well as to the list of capabilities used to enforce read access on posts.功能将被添加到其自定义功能以及用于强制发布帖子的阅读权限的功能列表中。If you have Groups 2.8.0 or greater installed, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.如果您安装了Groups 2.8.0或更高版本,则可以选择指定一个或多个“当前”和“过期”组,根据其成员身份是“当前”还是“过期”,将用户同步到这些组。 li>Note: If you have the “Members” plugin active, then the “restrict_content” 注意 strong>:如果您具有“ 成员”插件处于活动状态,则“ restrict_content”capability will also be added.功能也将被添加。 li>An additional “Membership Status Capability” will also be added to the WordPress user that is tied to the status of their membership.还将向WordPress用户添加一个附加的“会员资格功能”,该功能与其会员资格相关。This capability will be of the form “civimember_ID_NUM”, where “ID” is the numeric ID of the Membership Type and “NUM” is the numeric ID of the “Membership Status”.此功能的格式为“ civimember_ID_NUM”,其中“ ID”是会员类型的数字ID,“ NUM”是“会员状态”的数字ID。So, for Membership Type 2 with Membership Status 4, the capability will be “civimember_2_4”.因此,对于具有会员状态4的会员类型2,该功能将为“ civimember_2_4”。 li> ol>Working with Roles使用角色 h4>Visit the plugin’s admin page at “Settings” –> “CiviCRM WordPress Member Sync”.在“设置”->“ CiviCRM WordPress成员同步”上访问插件的管理页面。 li>Select “Roles” as the sync method选择“角色”作为同步方法 li>Click on “Add Association Rule” to create a rule.单击“添加关联规则”以创建规则。You will need to create a rule for every CiviCRM membership type you would like to synchronize.您将需要为要同步的每种CiviCRM成员资格类型创建一个规则。For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress role.对于每种会员类型,您需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress角色。It is most common to define “New”, “Current” and “Grace” as current.最常见的是将“新”,“当前”和“宽限期”定义为当前。Similarly, select which states represent the “expired” status thereby removing the WordPress role from the user.同样,选择哪些状态代表“过期”状态,从而从用户中删除WordPress角色。It is most common to define “Expired”, “Pending”, “Cancelled” and “Deceased” as the expired status.最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。With ‘roles’ as your synchronization method, also set the role to be assigned if the membership has expired in “Expiry Role”.使用“角色”作为您的同步方法,如果“过期角色”中的成员资格已过期,还可以设置要分配的角色。This is not needed when working with Capabilities.使用功能时不需要这样做。 li>It may sometimes be necessary to manually synchronize users.有时可能需要手动同步用户。Click on the “Manually Synchronize” tab on the admin page to do so.单击管理页面上的“手动同步”选项卡。You will want to use this when you initially configure this plugin to synchronize your existing users.最初配置此插件以同步现有用户时,您将希望使用此功能。 li>Note: If you have the “Groups” plugin activated and it is version 2.8. 注意 strong>:如果您已激活“ 组”插件,并且该插件的版本为2.8。 0 or greater, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.0或更大,那么您可以选择指定一个或多个“当前”和“过期”组,用户将根据其成员身份是“当前”还是“过期”而与之同步。 li> ol>Manual Synchronize手动同步 h4>It may sometimes be necessary to manually synchronize users.有时可能需要手动同步用户。Click on the “Manually Synchronize” tab on the admin page to do so.单击管理页面上的“手动同步”选项卡。You will want to use this when you initially configure this plugin to synchronize your existing users.最初配置此插件以同步现有用户时,将需要使用此功能。 p>Test Test Test测试测试测试 h4>Note: Be sure to test this plugin thoroughly before using it in a production environment. 注意 strong>:在生产环境中使用该插件之前,请务必对其进行彻底测试。At minimum, you should log in as a test user to ensure you have been granted the appropriate role or capabilities when that user is given membership.至少,您应该以测试用户身份登录,以确保在授予该用户成员身份时,已被授予适当的角色或功能。Then take away the membership for the user in their CiviCRM record, log back in as the test user, and make sure you no longer have that role or those capabilities.然后删除其CiviCRM记录中该用户的成员身份,以测试用户身份重新登录,并确保您不再具有该角色或那些功能。 p>
define( 'CIVI_WP_MEMBER_SYNC_MULTIPLE', true ); define('CIVI_WP_MEMBER_SYNC_MULTIPLE',true); code> pre>This will allow you to select multiple Membership Types when adding an Association Rule.这将允许您在添加关联规则时选择多个成员资格类型。When saved, one Rule will be created for each of the selected Membership Types.保存后,将为每个选定的成员资格类型创建一个规则。This could save a lot of time in setting up your Association Rules.这样可以节省大量时间来设置关联规则。Thanks to Foxpress Design for funding this upgrade.感谢 Foxpress Design 为此次升级提供资金。 p>Working with Capabilities使用功能 h4>Visit the plugin’s admin page at “Settings” –> “CiviCRM WordPress Member Sync”.在“设置”->“ CiviCRM WordPress成员同步”上访问插件的管理页面。 li>Select “Capabilities” as the sync method选择“功能”作为同步方法 li>Click on “Add Association Rule” to create a rule.单击“添加关联规则”以创建规则。You will need to create a rule for every CiviCRM membership type you would like to synchronize.您将需要为要同步的每种CiviCRM成员资格类型创建一个规则。For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress capabilities.对于每种会员类型,您将需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress功能。It is most common to define “New”, “Current” and “Grace” as current.最常见的是将“新”,“当前”和“宽限期”定义为当前。Similarly, select which states represent the “expired” status thereby removing the WordPress capabilities from the user.同样,选择哪些状态代表“过期”状态,从而从用户删除WordPress功能。It is most common to define “Expired”, “Pending”, “Cancelled” and “Deceased” as the expired status.最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。 li>“Current Status” adds a “Membership Capability” to the WordPress user, while “Expired Status” removes the “Membership Capability” from the WordPress user.“当前状态”向WordPress用户添加“会员能力”,而“过期状态”则从WordPress用户删除“会员能力”。This capability will be of the form “civimember_ID”, where “ID” is the numeric ID of the Membership Type.此功能的形式为“ civimember_ID”,其中“ ID”是成员资格类型的数字ID。So, for Membership Type 2, the capability will be “civimember_2”.因此,对于会员类型2,功能为“ civimember_2”。 li>Note: If you have the “Groups” plugin active, then all “civimember_ID” 注意 strong>:如果您具有“ 组”插件处于活动状态,则所有“ civimember_ID”capabilities will be added to its custom capabilities as well as to the list of capabilities used to enforce read access on posts.功能将被添加到其自定义功能以及用于强制发布帖子的阅读权限的功能列表中。If you have Groups 2.8.0 or greater installed, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.如果您安装了Groups 2.8.0或更高版本,则可以选择指定一个或多个“当前”和“过期”组,根据其成员身份是“当前”还是“过期”,将用户同步到这些组。 li>Note: If you have the “Members” plugin active, then the “restrict_content” 注意 strong>:如果您具有“ 成员”插件处于活动状态,则“ restrict_content”capability will also be added.功能也将被添加。 li>An additional “Membership Status Capability” will also be added to the WordPress user that is tied to the status of their membership.还将向WordPress用户添加一个附加的“会员资格功能”,该功能与其会员资格相关。This capability will be of the form “civimember_ID_NUM”, where “ID” is the numeric ID of the Membership Type and “NUM” is the numeric ID of the “Membership Status”.此功能的格式为“ civimember_ID_NUM”,其中“ ID”是会员类型的数字ID,“ NUM”是“会员状态”的数字ID。So, for Membership Type 2 with Membership Status 4, the capability will be “civimember_2_4”.因此,对于具有会员状态4的会员类型2,该功能将为“ civimember_2_4”。 li> ol>Working with Roles使用角色 h4>Visit the plugin’s admin page at “Settings” –> “CiviCRM WordPress Member Sync”.在“设置”->“ CiviCRM WordPress成员同步”上访问插件的管理页面。 li>Select “Roles” as the sync method选择“角色”作为同步方法 li>Click on “Add Association Rule” to create a rule.单击“添加关联规则”以创建规则。You will need to create a rule for every CiviCRM membership type you would like to synchronize.您将需要为要同步的每种CiviCRM成员资格类型创建一个规则。For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress role.对于每种会员类型,您需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress角色。It is most common to define “New”, “Current” and “Grace” as current.最常见的是将“新”,“当前”和“宽限期”定义为当前。Similarly, select which states represent the “expired” status thereby removing the WordPress role from the user.同样,选择哪些状态代表“过期”状态,从而从用户中删除WordPress角色。It is most common to define “Expired”, “Pending”, “Cancelled” and “Deceased” as the expired status.最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。With ‘roles’ as your synchronization method, also set the role to be assigned if the membership has expired in “Expiry Role”.使用“角色”作为您的同步方法,如果“过期角色”中的成员资格已过期,还可以设置要分配的角色。This is not needed when working with Capabilities.使用功能时不需要这样做。 li>It may sometimes be necessary to manually synchronize users.有时可能需要手动同步用户。Click on the “Manually Synchronize” tab on the admin page to do so.单击管理页面上的“手动同步”选项卡。You will want to use this when you initially configure this plugin to synchronize your existing users.最初配置此插件以同步现有用户时,您将希望使用此功能。 li>Note: If you have the “Groups” plugin activated and it is version 2.8. 注意 strong>:如果您已激活“ 组”插件,并且该插件的版本为2.8。 0 or greater, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.0或更大,那么您可以选择指定一个或多个“当前”和“过期”组,用户将根据其成员身份是“当前”还是“过期”而与之同步。 li> ol>Manual Synchronize手动同步 h4>It may sometimes be necessary to manually synchronize users.有时可能需要手动同步用户。Click on the “Manually Synchronize” tab on the admin page to do so.单击管理页面上的“手动同步”选项卡。You will want to use this when you initially configure this plugin to synchronize your existing users.最初配置此插件以同步现有用户时,将需要使用此功能。 p>Test Test Test测试测试测试 h4>Note: Be sure to test this plugin thoroughly before using it in a production environment. 注意 strong>:在生产环境中使用该插件之前,请务必对其进行彻底测试。At minimum, you should log in as a test user to ensure you have been granted the appropriate role or capabilities when that user is given membership.至少,您应该以测试用户身份登录,以确保在授予该用户成员身份时,已被授予适当的角色或功能。Then take away the membership for the user in their CiviCRM record, log back in as the test user, and make sure you no longer have that role or those capabilities.然后删除其CiviCRM记录中该用户的成员身份,以测试用户身份重新登录,并确保您不再具有该角色或那些功能。 p>
define('CIVI_WP_MEMBER_SYNC_MULTIPLE',true);
code> pre>
This will allow you to select multiple Membership Types when adding an Association Rule.
这将允许您在添加关联规则时选择多个成员资格类型。
When saved, one Rule will be created for each of the selected Membership Types.
保存后,将为每个选定的成员资格类型创建一个规则。
This could save a lot of time in setting up your Association Rules.
这样可以节省大量时间来设置关联规则。
Thanks to Foxpress Design for funding this upgrade.
感谢 Foxpress Design 为此次升级提供资金。 p>
You will need to create a rule for every CiviCRM membership type you would like to synchronize.
您将需要为要同步的每种CiviCRM成员资格类型创建一个规则。
For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress capabilities.
对于每种会员类型,您将需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress功能。
It is most common to define “New”, “Current” and “Grace” as current.
最常见的是将“新”,“当前”和“宽限期”定义为当前。
Similarly, select which states represent the “expired” status thereby removing the WordPress capabilities from the user.
同样,选择哪些状态代表“过期”状态,从而从用户删除WordPress功能。
It is most common to define “Expired”, “Pending”, “Cancelled” and “Deceased” as the expired status.
最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。 li>
This capability will be of the form “civimember_ID”, where “ID” is the numeric ID of the Membership Type.
此功能的形式为“ civimember_ID”,其中“ ID”是成员资格类型的数字ID。
So, for Membership Type 2, the capability will be “civimember_2”.
因此,对于会员类型2,功能为“ civimember_2”。 li>
capabilities will be added to its custom capabilities as well as to the list of capabilities used to enforce read access on posts.
功能将被添加到其自定义功能以及用于强制发布帖子的阅读权限的功能列表中。
If you have Groups 2.8.0 or greater installed, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.
如果您安装了Groups 2.8.0或更高版本,则可以选择指定一个或多个“当前”和“过期”组,根据其成员身份是“当前”还是“过期”,将用户同步到这些组。
li>
capability will also be added.
功能也将被添加。 li>
This capability will be of the form “civimember_ID_NUM”, where “ID” is the numeric ID of the Membership Type and “NUM” is the numeric ID of the “Membership Status”.
此功能的格式为“ civimember_ID_NUM”,其中“ ID”是会员类型的数字ID,“ NUM”是“会员状态”的数字ID。
So, for Membership Type 2 with Membership Status 4, the capability will be “civimember_2_4”.
因此,对于具有会员状态4的会员类型2,该功能将为“ civimember_2_4”。 li>
For every membership type, you will need to determine the CiviMember states that define the member as “current” thereby granting them the appropriate WordPress role.
对于每种会员类型,您需要确定将会员定义为“当前”的CiviMember状态,从而为他们授予适当的WordPress角色。
Similarly, select which states represent the “expired” status thereby removing the WordPress role from the user.
同样,选择哪些状态代表“过期”状态,从而从用户中删除WordPress角色。
最常见的是将“过期”,“待处理”,“已取消”和“已故”定义为过期状态。
With ‘roles’ as your synchronization method, also set the role to be assigned if the membership has expired in “Expiry Role”.
使用“角色”作为您的同步方法,如果“过期角色”中的成员资格已过期,还可以设置要分配的角色。
This is not needed when working with Capabilities.
使用功能时不需要这样做。 li>
Click on the “Manually Synchronize” tab on the admin page to do so.
单击管理页面上的“手动同步”选项卡。
You will want to use this when you initially configure this plugin to synchronize your existing users.
最初配置此插件以同步现有用户时,您将希望使用此功能。 li>
0 or greater, then you will have the option to specify one or more “current” and “expired” groups to which users will be synced depending on whether their membership is “current” or “expired”.
0或更大,那么您可以选择指定一个或多个“当前”和“过期”组,用户将根据其成员身份是“当前”还是“过期”而与之同步。 li>
It may sometimes be necessary to manually synchronize users.
有时可能需要手动同步用户。
最初配置此插件以同步现有用户时,将需要使用此功能。 p>
Note: Be sure to test this plugin thoroughly before using it in a production environment.
注意 strong>:在生产环境中使用该插件之前,请务必对其进行彻底测试。At minimum, you should log in as a test user to ensure you have been granted the appropriate role or capabilities when that user is given membership.至少,您应该以测试用户身份登录,以确保在授予该用户成员身份时,已被授予适当的角色或功能。Then take away the membership for the user in their CiviCRM record, log back in as the test user, and make sure you no longer have that role or those capabilities.然后删除其CiviCRM记录中该用户的成员身份,以测试用户身份重新登录,并确保您不再具有该角色或那些功能。 p>
At minimum, you should log in as a test user to ensure you have been granted the appropriate role or capabilities when that user is given membership.
至少,您应该以测试用户身份登录,以确保在授予该用户成员身份时,已被授予适当的角色或功能。
Then take away the membership for the user in their CiviCRM record, log back in as the test user, and make sure you no longer have that role or those capabilities.
然后删除其CiviCRM记录中该用户的成员身份,以测试用户身份重新登录,并确保您不再具有该角色或那些功能。 p>
原文出处:http://www.sanshu.cn/a/7352.html
群主管理都是支付大佬