class-wpml-post-custom-field-setting-keys.php
918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
class WPML_Post_Custom_Field_Setting_Keys {
/**
* @return string
*/
public static function get_state_array_setting_index() {
return 'custom_fields_translation';
}
/**
* @return string
*/
public static function get_unlocked_setting_index() {
return defined( 'WPML_POST_META_UNLOCKED_SETTING_INDEX' )
? WPML_POST_META_UNLOCKED_SETTING_INDEX
: 'custom_fields_unlocked_config';
}
/**
* @return string
*/
public static function get_setting_prefix() {
return 'custom_fields_';
}
/**
* @return string[]
*/
public static function get_excluded_keys() {
return array(
'_edit_last',
'_edit_lock',
'_wp_page_template',
'_wp_attachment_metadata',
'_icl_translator_note',
'_alp_processed',
'_pingme',
'_encloseme',
'_icl_lang_duplicate_of',
'_wpml_media_duplicate',
'wpml_media_processed',
'_wpml_media_featured',
'_thumbnail_id'
);
}
}