Skip to content

Instantly share code, notes, and snippets.

@tnottu
tnottu / pll_copy_post_metas_from_default_lang.php
Created April 12, 2017 13:47
Polylang: Copy ACF fields from default language
/*
* Copy meta fields across languages
*/
$acf_keys_to_copy = [
'acf_singular_field_name',
'acf_repeater_field_name' => ['acf_repeater_subfield_name']
];