Skip to content

Instantly share code, notes, and snippets.

@MikeiLL
Forked from thierrypigot/acf-polylang.php
Created April 25, 2018 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeiLL/1101d9cc64920fa635879f4097b2af31 to your computer and use it in GitHub Desktop.
Save MikeiLL/1101d9cc64920fa635879f4097b2af31 to your computer and use it in GitHub Desktop.
Add polylang support to ACF fields group
<?php
add_filter('pll_get_post_types', 'wearewp_add_acf_pll', 10, 2);
function wearewp_add_acf_pll( $post_types, $is_settings ) {
$post_types[] = 'acf-field-group';
return $post_types;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment