本文整理匯總了PHP中TranslationManagement::determine_translated_taxonomies方法的典型用法代碼示例。如果您正苦於以下問題:PHP TranslationManagement::determine_translated_taxonomies方法的具體用法?PHP TranslationManagement::determine_translated_taxonomies怎麽用?PHP TranslationManagement::determine_translated_taxonomies使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TranslationManagement
的用法示例。
在下文中一共展示了TranslationManagement::determine_translated_taxonomies方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: printf
}
?>
<?php
/* TRANSLATED CONTENT */
?>
<?php
$icl_tm_original_content = TranslationManagement::decode_field_data($element->field_data, $element->field_format);
$icl_tm_translated_content = TranslationManagement::decode_field_data($element->field_data_translated, $element->field_format);
if ($element->field_type == 'tags' || $element->field_type == 'categories') {
$taxonomy = $element->field_type == 'tags' ? 'post_tag' : 'category';
$icl_tm_translated_taxs[$element->field_type] = TranslationManagement::determine_translated_taxonomies($icl_tm_original_content, $taxonomy, $job->language_code);
}
$translatable_taxonomies = $sitepress->get_translatable_taxonomies(false, $job->original_post_type);
if (in_array($element->field_type, $translatable_taxonomies)) {
$taxonomy = $element->field_type;
$icl_tm_translated_taxs[$element->field_type] = TranslationManagement::determine_translated_taxonomies($icl_tm_original_content, $taxonomy, $job->language_code);
}
?>
<p>
<?php
_e('Translated content', 'wpml-translation-management');
echo ' - ' . $job->to_language;
?>
<?php
if (empty($icl_tm_translated_content)) {
?>
<span>| <a class="icl_tm_copy_link" id="icl_tm_copy_link_<?php
echo $element->field_type;
?>
" href="#"><?php
printf(__('Copy from %s', 'wpml-translation-management'), $job->from_language);