get_translatable_documents(true); foreach($icl_post_types as $k=>$v){ if(!in_array($k, array('post','page'))){ $cposts[$k] = $v; } } foreach($cposts as $k=>$cpost){ if(!isset($sitepress_settings['custom_posts_sync_option'][$k])){ $cposts_sync_not_set[] = $cpost->labels->name; } } if(!empty($cposts_sync_not_set)){ $notice = '

'; $notice .= sprintf(__("You haven't set your synchronization preferences for these custom posts: %s. Default value was selected.", 'sitepress'), ''.join(', ', $cposts_sync_not_set) . ''); $notice .= '

'; } global $wp_taxonomies; $ctaxonomies = array_diff(array_keys((array)$wp_taxonomies), array('post_tag','category', 'nav_menu', 'link_category')); foreach($ctaxonomies as $ctax){ if(!isset($sitepress_settings['taxonomies_sync_option'][$ctax])){ $tax_sync_not_set[] = $wp_taxonomies[$ctax]->label; } } if(!empty($tax_sync_not_set)){ $notice .= '

'; $notice .= sprintf(__("You haven't set your synchronization preferences for these taxonomies: %s. Default value was selected.", 'sitepress'), ''.join(', ', $tax_sync_not_set) . ''); $notice .= '

'; } $cf_keys_limit = 1000; // jic $cf_keys = $wpdb->get_col( " SELECT meta_key FROM $wpdb->postmeta GROUP BY meta_key ORDER BY meta_key LIMIT $cf_keys_limit" ); $cf_keys_exceptions = array('_edit_last', '_edit_lock', '_wp_page_template', '_wp_attachment_metadata', '_icl_translator_note'); // '_wp_attached_file' $cf_keys = array_diff($cf_keys, $cf_keys_exceptions); $cf_keys = array_unique(array_merge($cf_keys, $iclTranslationManagement->settings['custom_fields_readonly_config'])); if ( $cf_keys ) natcasesort($cf_keys); $cf_settings = $iclTranslationManagement->settings['custom_fields_translation']; $cf_settings_ro = (array)$iclTranslationManagement->settings['custom_fields_readonly_config']; $doc_translation_method = intval($iclTranslationManagement->settings['doc_translation_method']); ?>

Learn more about the different translation options

  •  




 

get_icl_manually_tranlations_box(''); // shows only when translation polling is on and there are translations in progress ?>

     


$cpost): ?> settings['custom_types_readonly_config'][$k]) ? 'disabled="disabled"':''; ?>
 
labels->name; ?>  

settings['taxonomies_readonly_config'][$ctax]) ? 'disabled="disabled"':''; ?>
 
label; ?>  


admin_texts_to_translate)): ?>
admin_texts_to_translate as $option_name=>$option_value): ?> render_option_writes($option_name, $option_value); ?>