PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
classes
/
settings
<?php class WPML_Custom_Field_Setting_Factory extends WPML_TM_User { public $show_system_fields = false; /** * @param string $meta_key * * @return WPML_Post_Custom_Field_Setting */ public function post_meta_setting( $meta_key ) { return new WPML_Post_Custom_Field_Setting( $this->tm_instance, $meta_key ); } /** * @param string $meta_key * * @return WPML_Term_Custom_Field_Setting */ public function term_meta_setting( $meta_key ) { return new WPML_Term_Custom_Field_Setting( $this->tm_instance, $meta_key ); } /** * Returns all custom field names for which a site has either a setting * in the TM settings or that can be found on any post. * * @return string[] */ public function get_post_meta_keys() { return $this->filter_custom_field_keys( $this->tm_instance->initial_custom_field_translate_states() ); } /** * Returns all term custom field names for which a site has either a setting * in the TM settings or that can be found on any term. * * @return string[] */ public function get_term_meta_keys() { return $this->filter_custom_field_keys( $this->tm_instance->initial_term_custom_field_translate_states() ); } private function filter_custom_field_key( $custom_fields_key ) { return $this->show_system_fields || '_' !== substr( $custom_fields_key, 0, 1 ); } /** * @param array $keys * * @return array */ public function filter_custom_field_keys( $keys ) { if ( is_array( $keys ) ) { return array_filter( $keys, array( $this, 'filter_custom_field_key' ) ); } else { return array(); } } }
[-] 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]