You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 9, 2020. It is now read-only.
When editing prices from the admin table, WPML does not sync the changes to post meta. They require a hook be added when the post meta is updated to sync these changes:
@NateWr: Yes, the wpml.xml is also used by Polylang and allows to define which fields should be copied over/synced instead independently translated. This is useful for e.g. the price field.
I don't believe the wpml-config.xml file is sufficient to address this issue. This issue is specifically about the price editing feature that appears in the list of menu items. When saved, it updates the post meta (update_post_meta) without doing a full post save, and WPML does not hook into this function, regardless of the wpml-config.xml settings.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When editing prices from the admin table, WPML does not sync the changes to post meta. They require a hook be added when the post meta is updated to sync these changes:
This code shhould be added after the post meta update here: https://github.com/NateWr/food-and-drink-menu/blob/master/includes/class-custom-post-types.php#L941
More details can be found in the WPML forums here: https://wpml.org/forums/topic/why-does-wpml-not-listen-to-wp-api-functions-delete_post_meta-add_post_meta/#post-1500291
The text was updated successfully, but these errors were encountered: