Created
January 5, 2017 20:31
-
-
Save thierrypigot/32c7765ea4e3f4ef5a64687525777e81 to your computer and use it in GitHub Desktop.
Add polylang support to ACF fields group
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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
You rock for sharing this, friend.