get_core_translation_management()->decode_field_data( $data, $format ); } protected function get_tm_setting( $indexes ) { $core_tm = $this->get_core_translation_management(); if ( empty( $core_tm->settings ) ) { $core_tm->init(); } $settings = $core_tm->get_settings(); foreach ( $indexes as $index ) { $settings = isset( $settings[ $index ] ) ? $settings[ $index ] : null; if ( ! isset( $settings ) ) { break; } } return $settings; } /** * @return TranslationManagement */ public static function get_core_translation_management() { /** TranslationManagement $iclTranslationManagement */ global $iclTranslationManagement; return $iclTranslationManagement; } }