是的,它有一个过滤器:woocommerce_settings_tabs_array
:
add_filter( \'woocommerce_settings_tabs_array\', \'wpse94969_settings_tabs_array\' );
function wpse94969_settings_tabs_array($tabs){
$tabs[\'catalog\'] = __(\'Products\',\'your_textdomain\'); // or whatever you fancy
return $tabs;
}
这将考虑选项卡标题本身:
“Catalog”一词再次出现在下面的两个字段标签中
要更改这些,您可以利用woocommerce_catalog_settings
过滤器:
add_filter( \'woocommerce_catalog_settings\', \'wpse94969_catalog_settings\' );
function wpse94969_catalog_settings($fields){
foreach ( $fields as $key => $field ) {
if ( \'catalog_options\' == $field[\'id\'] )
$fields[$key][\'title\'] = __(\'Products Options\',\'your_textdomain\');
if ( \'shop_catalog_image_size\' == $field[\'id\'] )
$fields[$key][\'title\'] = __( \'Products Images\', \'your_textdomain\' );
}
return $fields;
}