Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Created January 5, 2017 20:31
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save thierrypigot/32c7765ea4e3f4ef5a64687525777e81 to your computer and use it in GitHub Desktop.
Save thierrypigot/32c7765ea4e3f4ef5a64687525777e81 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;
}
@MikeiLL
Copy link

MikeiLL commented Apr 25, 2018

You rock for sharing this, friend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment