
內容簡介
這外掛有什麼作用?
使用這個外掛,您可以對 WordPress 使用者和使用者元數據庫中的欄位進行映射和同步。
注意:
此外掛只能單向同步!
這個外掛會在後台中新增一個名為“SyncFields”的選單,讓您可以控制外掛的設置。
請給我一個例子
當您安裝像 WooCommerce 這樣的外掛時,WordPress 使用者元數據庫表中會填充新的欄位。您可以將這些欄位進行映射,並選擇自動將其與其他使用者元數據庫欄位或 WordPress 普通使用者欄位同步。
例如,您可以選擇將 WooCommerce 的 billing_country 使用者元數據庫欄位與 WordPress 的主要國家使用者欄位進行同步。還有許多在 WordPress 中同步數據的方式,並保持其自動同步。
它可以與 xyz 外掛一起使用嗎?
是的,它適用於任何創建使用者元數據庫欄位的外掛。該外掛會自動查找每次您安裝新外掛時的新欄位。
要在兩個數據庫欄位之間創建新的同步:
點擊“新增映射”。該操作會收集所有可用的欄位。(這可能需要一些時間)。
選擇主要欄位。
選擇主要欄位要與之同步的欄位。
點擊“創建新欄位”
一旦您創建了兩個欄位之間的映射,所有使用者的數據將保持同步。 (其工作方式是每當欄位中的數據發生更改時,同步就會自動觸發)。
要刪除欄位映射:
在應用映射行中點擊“刪除”按鈕。
要編輯欄位映射:
在應用映射行中點擊“編輯”按鈕。
注意:
請確保您打算同步的數據庫欄位類型相同。例如,請勿將郵件欄位與國家欄位同步,這會導致同步欄位中的無效數據。
如果不確定是否應該將欄位彼此同步,可能會在極端情況下損壞您的網站,請勿進行欄位同步。
在 plugintests.com 上測試過
您是否擔心它會降低您的網站速度?是否擔心它會創建 PHP 錯誤?
它不會。請查看:https://plugintests.com/plugins/wporg/syncfields/latest
外掛標籤
開發者團隊
原文外掛簡介
What does it do?
With this plugin you can map and synchronize fields in the WordPress user and usermeta database.
Note:
This plugin syncs one way only!
The plugin adds a new menu in the backend called ‘SyncFields’, which allows you to control the plugin settings.
Give me an example please
When you install plugins such as WooCommerce, the WordPress usermeta database table is populated with new fields. You can map these fields and choose to automatically sync these with other usermeta fields, or with the WordPress regular user fields.
For example, you can choose to Sync WooCommerce billing_country usermeta field with the WordPress main Country user field. And lot’s of other ways to sync data within WordPress, and keep it synced automatically.
Does it work with plugin xyz…?
Yes, it works with ANY plugin which creates usermeta fields. The plugin automatically finds new fields every time you install a new plugin.
To create a new Sync between two database fields:
Click on ‘Add new mapping’. A list of available fields are collected. (This can take some time).
Choose the Primary Field.
Choose a field the primary field will sync with.
Click on ‘Create New Field’
Once you created a mapping between two fields, the data will remain synced for all users. (The way it works is that every time data is changed in a field the sync will trigger automatically).
To delete a field mapping:
Click the ‘delete’ button in the applicable mapping row.
To edit a field mapping:
Click the ‘edit’ button in the applicable mapping row.
Caution:
Make sure database fields which you intend to sync are of the same type. So for example do not sync an email field with a Country field, this will result in invalid data in the synced fields.
If in doubt do NOT sync fields with each other, it may break your site in extreme cases.
Tested at plugintests.com
Wonder if it will slow down your site? Wonder it creates PHP errors?
It doesn’t. Check this out: https://plugintests.com/plugins/wporg/syncfields/latest
