您可以在中找到该文件~/wp-content/plugins/woocommerce/includes/admin/views/html-admin-settings.php
foreach ( $tabs as $slug => $label ) {
echo \'<a href="\' . esc_html( admin_url( \'admin.php?page=wc-settings&tab=\' . esc_attr( $slug ) ) ) . \'" class="nav-tab \' . ( $current_tab === $slug ? \'nav-tab-active\' : \'\' ) . \'">\' . esc_html( $label ) . \'</a>\';
}
和编辑
html-admin-settings.php
添加代码
foreach ( $tabs as $slug => $label ) {
if( $slug != "Product"){
echo \'<a href="\' . esc_html( admin_url( \'admin.php?page=wc-settings&tab=\' . esc_attr( $slug ) ) ) . \'" class="nav-tab \' . ( $current_tab === $slug ? \'nav-tab-active\' : \'\' ) . \'">\' . esc_html( $label ) . \'</a>\';
}
}