function ut_translate_meta($content) { if (function_exists('qtrans_useCurrentLanguageIfNotFoundShowAvailable')) { return qtrans_useCurrentLanguageIfNotFoundShowAvailable($content); } if (function_exists('ppqtrans_useCurrentLanguageIfNotFoundShowAvailable')) { return ppqtrans_useCurrentLanguageIfNotFoundShowAvailable($content); } if (function_exists('qtranxf_useCurrentLanguageIfNotFoundShowAvailable')) { return qtranxf_useCurrentLanguageIfNotFoundShowAvailable($content); } return $content; }
function ppqtrans_postsFilter($posts) { if (is_array($posts)) { foreach ($posts as $post) { $post->post_content = ppqtrans_useCurrentLanguageIfNotFoundShowAvailable($post->post_content); $post = ppqtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($post); } } return $posts; }