Пример #1
0
function acf_qtranslate_plugin_format_value_for_api($value)
{
    if (acf_qtranslate_enabled() && is_string($value)) {
        $value = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($value);
    }
    return $value;
}
Пример #2
0
 function update_value($value, $post_id, $field)
 {
     if (acf_qtranslate_enabled()) {
         $value = qtrans_join($value);
     }
     return $value;
 }