ACF_WPML_Compatibility::get_translatable_documents │ public │ ACF 5.6.0

get_translatable_documents

Removes 'acf-field' from the available post types for translation.

Method of the class: ACF_WPML_Compatibility{}

No Hooks.

Returns

array.

Usage

$ACF_WPML_Compatibility = new ACF_WPML_Compatibility();
$ACF_WPML_Compatibility->get_translatable_documents( $icl_post_types );
$icl_post_types(array) (required)
The array of post types.

Changelog

Since 5.6.0 Introduced.

ACF_WPML_Compatibility::get_translatable_documents() code ACF 6.8.8

function get_translatable_documents( $icl_post_types ) {

	// unset
	unset( $icl_post_types['acf-field'] );

	// return
	return $icl_post_types;
}