PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
classes
/
settings
<?php namespace WPML\TM\Settings; class Repository { public static function getSetting( $indexes ) { $settings = self::getAllSettings(); /** * I do not know why the foreach loop looks like that. I have just copied it from WPML_Translation_Job_Helper * @todo Review it later and try simplify if possible */ foreach ( $indexes as $index ) { $settings = isset( $settings[ $index ] ) ? $settings[ $index ] : null; if ( ! isset( $settings ) ) { break; } } return $settings; } public static function getCustomFieldsToTranslate() { return array_values( array_filter( array_keys( self::getSetting( [ 'custom_fields_translation' ] ) ?: [], WPML_TRANSLATE_CUSTOM_FIELD ) ) ); } public static function getCustomFields() { return \wpml_collect( self::getSetting( [ 'custom_fields_translation' ] ) ?: [] ) ->filter( function ( $value, $key ) { return (bool) $key; } )->toArray(); } /** * @return array */ private static function getAllSettings() { /** @var \TranslationManagement $iclTranslationManagement */ global $iclTranslationManagement; if ( ! $iclTranslationManagement ) { return []; } if ( empty( $iclTranslationManagement->settings ) ) { $iclTranslationManagement->init(); } return $iclTranslationManagement->get_settings(); } }
[-] class-wpml-term-custom-field-setting-keys.php
[edit]
[-] class-wpml-custom-field-setting.php
[edit]
[-] Repository.php
[edit]
[-] ProcessNewTranslatableFields.php
[edit]
[-] class-wpml-verify-sitepress-settings.php
[edit]
[-] class-wpml-tm-settings-post-process.php
[edit]
[-] class-wpml-tm-serialized-custom-field-package-handler-factory.php
[edit]
[-] CustomFieldChangeDetector.php
[edit]
[-] class-wpml-custom-field-setting-query-factory.php
[edit]
[-] class-wpml-post-custom-field-setting.php
[edit]
[-] class-wpml-tm-serialized-custom-field-package-handler.php
[edit]
[-] wpml-tm-default-settings-factory.php
[edit]
[-] UI.php
[edit]
[-] class-wpml-element-sync-settings.php
[edit]
[-] class-wpml-element-sync-settings-factory.php
[edit]
[-] class-wpml-post-custom-field-setting-keys.php
[edit]
[-] class-wpml-custom-field-xml-settings-import.php
[edit]
[-] class-wpml-custom-field-setting-query.php
[edit]
[-] class-wpml-term-custom-field-setting.php
[edit]
[+]
..
[-] class-wpml-settings-filters.php
[edit]
[-] class-wpml-page-builder-settings.php
[edit]
[-] class-wpml-tm-settings-update.php
[edit]
[-] class-wpml-custom-field-setting-factory.php
[edit]
[-] wpml-tm-default-settings.php
[edit]