class-wpml-tm-mcs-post-custom-field-settings-menu.php
1.12 KB
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
50
51
52
53
54
<?php
class WPML_TM_MCS_Post_Custom_Field_Settings_Menu extends WPML_TM_MCS_Custom_Field_Settings_Menu {
/**
* @return string
*/
protected function get_meta_type() {
return WPML_Custom_Field_Setting_Query_Factory::TYPE_POSTMETA;
}
/**
* @param string $key
*
* @return WPML_Post_Custom_Field_Setting
*/
protected function get_setting( $key ) {
return $this->settings_factory->post_meta_setting( $key );
}
/**
* @return string
*/
protected function get_title() {
return __( 'Custom Fields Translation', 'wpml-translation-management' );
}
/**
* @return string
*/
protected function kind_shorthand() {
return 'cf';
}
/**
* @return string
*/
public function get_no_data_message() {
return __( 'No custom fields found. It is possible that they will only show up here after you add more posts after installing a new plugin.', 'wpml-translation-management' );
}
/**
* @param string $id
*
* @return string
*/
public function get_column_header( $id ) {
$header = $id;
if('name' === $id) {
$header = __( 'Custom fields', 'wpml-translation-management' );
}
return $header;
}
}