ACF_WPML_Compatibility::get_translatable_documents()
get_translatable_documents
Removes 'acf-field' from the available post types for translation.
Метод класса: ACF_WPML_Compatibility{}
Хуков нет.
Возвращает
Массив
.
Использование
$ACF_WPML_Compatibility = new ACF_WPML_Compatibility(); $ACF_WPML_Compatibility->get_translatable_documents( $icl_post_types );
- $icl_post_types(массив) (обязательный)
- The array of post types.
Список изменений
С версии 5.6.0 | Введена. |
Код ACF_WPML_Compatibility::get_translatable_documents() ACF WPML Compatibility::get translatable documents ACF 6.0.4
function get_translatable_documents( $icl_post_types ) { // unset unset( $icl_post_types['acf-field'] ); // return return $icl_post_types; }