Polylang Compatibility

ACF Extended adds a new layer of compatibility for Polylang. ACF Options Pages and all ACF Extended Modules (Dynamic Post Type, Taxonomy, Options Pages, Block Type) are compatible.

ACF Options Pages are automatically translated. Example: my-theme will become my-theme_en_US when switching language. If an Options Page was manually registered with a custom post id including a language code at the end, then the post id won’t be translated.

The module is also compatible with the ACF Options for Polylang plugin.

ACF Extended Modules

Dynamic Post Type, Taxonomy, Options Pages & Block Type items are automatically registered as Polylang strings, and can be translated using the Polylang String Translation module in Languages > Strings Translation menu.

Allow/Disallow Options

It is possible to allow or disallow specific options pages ID using the following hook:

 * Multilang Options Post ID
 * @array $options_post_id Array of allowed post ids

add_filter('acfe/modules/multilang/options', 'my_acfe_multilang_options');
function my_acfe_multilang_options($options_post_id){

    // Disallow 'my_post_id'
    return $options_post_id;

Disable The Module

This module is enabled by default. To disable it, you can use the following code:

add_action('acf/init', 'my_acfe_modules');
function my_acfe_modules(){

    // Disable Multilingual Compatibility
    acfe_update_setting('modules/multilang', false);
    // Or:
    acf_update_setting('acfe/modules/multilang', false);