Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicating metadata with Polylang synchronization #1

Open
villesiltala opened this issue Mar 9, 2020 · 1 comment
Open

Comments

@villesiltala
Copy link

If Polylang's synchronization for custom fields is enabled, saving translations will duplicate all metadata added for a post. Prevent this by adding a metadata handler for the Polylang integration that filters out all meta keys set for the imported post object. The pll_copy_post_metas filter can be used to implement this.

@villesiltala
Copy link
Author

villesiltala commented Oct 13, 2020

The identification data is already filtered out. Implemented in:
https://github.com/devgeniem/wp-oopi/blob/master/src/Localization/Polylang.php#L266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant