Linux 软件免费装
Banner图

SyncFields

开发者 pjfc
更新时间 2026年12月4日 06:00
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPL2 or later
版权网址: 版权信息

标签

woocommerce sync custom fields database usermeta

下载

4.1 4.0 4.2 4.3

详情介绍:

What does it do? With this plugin you can map and synchronize fields in the WordPress user and usermeta database. Per mapping you choose the direction: 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. New fields are discovered automatically once a day, or right away with 'Refresh Field Catalog'. To create a new Sync between two database fields: To delete a field mapping: To edit a field mapping: 注意: 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

安装:

For an automatic installation through WordPress:
  1. Go to the 'Add New' plugins screen in your WordPress admin area
  2. Search for 'SyncFields'
  3. Click 'Install Now' and activate the plugin
  4. Go to the 'SyncFields' menu
For a manual installation via FTP:
  1. Upload the syncfields directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' screen in your WordPress admin area
  3. Go the 'SyncFields' menu
To upload the plugin through WordPress, instead of FTP:
  1. Upload the downloaded zip file on the 'Add New' plugins screen (see the 'Upload' tab) in your WordPress admin area and activate.
  2. Go the 'SyncFields' menu

屏幕截图:

  • The 'Add New Mapping' screen.
  • The 'Edit Mapping' screen.

常见问题:

A field is missing from the list

Most plugins only create a usermeta field the first time a user gets a value for it, not when the plugin is activated. Until then SyncFields cannot find it. You don't have to wait: type the field's exact meta key in the field box and save the mapping. With WooCommerce active, its standard billing_ and shipping_ fields are always listed.

Can fields sync in both directions?

Yes. Choose Two-way for a mapping: a change on either side is copied to the other. If both sides changed between syncs, the primary field wins.

Can I sync the user's e-mail address and other core user fields?

Yes: user_email, user_url and display_name, plus first_name, last_name and the other standard profile fields. user_login is read-only: it can only be the primary field of a one-way mapping. user_email is never emptied: an empty or invalid source value is not copied into it.

Why can't I map some fields?

Fields that hold roles, capabilities, sessions, passwords, tokens or other secrets, internal fields starting with an underscore, and field names with non-ASCII characters cannot be synced. Syncing them could give users admin rights or copy credentials. An existing mapping that uses such a field is skipped and marked on the SyncFields screen.

What is not supported?

Only user fields (the users and usermeta tables) are synced. Post or product meta (such as ACF fields on posts), other plugins' own tables (such as BuddyPress profile fields), combining fields and converting values (such as a value into a role) are not supported.

Does this plugin work with Headless /JamStack WordPress sites?

Yes it works.

What is Cron Scheduling?

If you want to run a regular Sync on a Cron schedule, please use this option. It normally should not be necessary because syncs are saved upon every commit.

Where can I find the documentation

The plugin is documented in the backend. If you have any questions, feel free to pose them in the Support section here https://wordpress.org/support/plugin/syncfields

更新日志:

4.3 4.2 4.1 4.0 3.0 Major Update: Complete Plugin Modernization and Two-Way Sync This update represents a comprehensive overhaul of the SyncFields plugin, bringing it up to modern WordPress standards with significant new features and improvements. New Feature: Two-Way Synchronization 2.2